Results

ARBQ
george_washingtonbirthgeorge_washington_birth1
john_adamsbirthjohn_adams_birth1
thomas_jeffersonbirththomas_jefferson_birth1
james_madisonbirthjames_madison_birth1
james_monroebirthjames_monroe_birth1
john_quincy_adamsbirthjohn_quincy_adams_birth1
andrew_jacksonbirthandrew_jackson_birth1
martin_van_burenbirthmartin_van_buren_birth1
william_harrisonbirthwilliam_harrison_birth1
john_tylerbirthjohn_tyler_birth1
james_polkbirthjames_polk_birth1
zachary_taylorbirthzachary_taylor_birth1
millard_fillmorebirthmillard_fillmore_birth1
franklin_piercebirthfranklin_pierce_birth1
james_buchananbirthjames_buchanan_birth1
abraham_lincolnbirthabraham_lincoln_birth1
andrew_johnsonbirthandrew_johnson_birth1
ulysses_grantbirthulysses_grant_birth1
rutherford_hayesbirthrutherford_hayes_birth1
james_garfieldbirthjames_garfield_birth1
chester_arthurbirthchester_arthur_birth1
grover_clevelandbirthgrover_cleveland_birth1
benjamin_harrisonbirthbenjamin_harrison_birth1
william_mckinleybirthwilliam_mckinley_birth1
theodore_rooseveltbirththeodore_roosevelt_birth1
william_taftbirthwilliam_taft_birth1
woodrow_wilsonbirthwoodrow_wilson_birth1
warren_hardingbirthwarren_harding_birth1
calvin_coolidgebirthcalvin_coolidge_birth1
herbert_hooverbirthherbert_hoover_birth1
franklin_rooseveltbirthfranklin_roosevelt_birth1
harry_trumanbirthharry_truman_birth1
dwight_eisenhowerbirthdwight_eisenhower_birth1
john_kennedybirthjohn_kennedy_birth1
lyndon_johnsonbirthlyndon_johnson_birth1
richard_nixonbirthrichard_nixon_birth1
gerald_fordbirthgerald_ford_birth1
james_carterbirthjames_carter_birth1
ronald_reaganbirthronald_reagan_birth1
george_hw_bushbirthgeorge_hw_bush_birth1
william_clintonbirthwilliam_clinton_birth1
george_w_bushbirthgeorge_w_bush_birth1
barack_obamabirthbarack_obama_birth1
donald_trumpbirthdonald_trump_birth1
joseph_bidenbirthjoseph_biden_birth1

Code

Memelang:  .birth

SQL:  SELECT * FROM meme m0 WHERE m0.rid='birth' AND m0.qnt!=0;

Memelang Demo

This is demonstration of translating Memelang to SQL for querying relational databases. See the PHP code in GitHub. A Python implementation is coming soon. Example queries:

Show all data in the database.

qry.all

All about George Washington.

george_washington

Who were children of the presidents?

.child

Which presidents were members of the Whig party?

.party:whig

Which presidents were born before 1820?

.birth.year:ad<1820

Which presidents attended Columbia and were lawyers?

.college:columbia .lawyer

Who were the spouses of the twentieth through thirtieth presidents?

.president_order>=20 .president_order<=30 .spouse

Which presidents did not have children?

.president_order .child=f

Use qry.all to return all memes related to the matching As.

.college:harvard .college:columbia qry.all

Get all about James Carter as well as Ronald Reagan.

james_carter; ronald_reagan

Which presidents were lawyers that attended Harvard or William and Mary?

.lawyer .college:harvard=t1 .college:william_and_mary=t1

What were the professions of the presidents?

?profession

What were the professions of George Washington?

george_washington?profession

Which presidents previously worked for New York state?

new_york'?profession

Which presidents has children that became presidents?

.child.president_order