Results

ARBQ
george_washingtonspousemartha_washington1
john_adamsspouseabigail_adams1
thomas_jeffersonspousemartha_wayles_skelton_jefferson1
james_madisonspousedolley_madison1
james_monroespouseelizabeth_kortright_monroe1
john_quincy_adamsspouselouisa_catherine_johnson_adams1
andrew_jacksonspouserachel_donelson_jackson1
martin_van_burenspousehannah_hoes_van_buren1
william_harrisonspouseanna_tuthill_symmes_harrison1
john_tylerspouseletitia_christian_tyler1
john_tylerspousejulia_gardiner_tyler1
james_polkspousesarah_childress_polk1
zachary_taylorspousemargaret_mackall_smith_taylor1
millard_fillmorespouseabigail_powers_fillmore1
franklin_piercespousejane_means_appleton_pierce1
abraham_lincolnspousemary_todd_lincoln1
andrew_johnsonspouseeliza_mccardle_johnson1
ulysses_grantspousejulia_dent_grant1
rutherford_hayesspouselucy_webb_hayes1
james_garfieldspouselucretia_rudolph_garfield1
chester_arthurspouseellen_lewis_herndon_arthur1
grover_clevelandspousefrances_folsom_cleveland1
benjamin_harrisonspouselavinia_scott_harrison1
william_mckinleyspouseida_saxton_mckinley1
theodore_rooseveltspousealice_hathaway_lee_roosevelt1
theodore_rooseveltspouseedith_kermit_carow1
william_taftspousehelen_herron_taft1
woodrow_wilsonspouseellen_louise_axson1
woodrow_wilsonspouseedith_wilson1
warren_hardingspouseflorence_kling_harding1
calvin_coolidgespousegrace_anna_goodhue_coolidge1
herbert_hooverspouselou_henry_hoover1
franklin_rooseveltspouseeleanor_roosevelt1
harry_trumanspousebess_truman1
dwight_eisenhowerspousemamie_eisenhower1
john_kennedyspousejacqueline_kennedy_onassis1
lyndon_johnsonspouselady_bird_johnson1
richard_nixonspousepat_nixon1
gerald_fordspousebetty_ford1
james_carterspouserosalynn_carter1
ronald_reaganspousenancy_reagan1
george_hw_bushspousebarbara_bush1
william_clintonspousehillary_clinton1
george_w_bushspouselaura_bush1
barack_obamaspousemichelle_obama1
donald_trumpspousemelania_trump1
joseph_bidenspousejill_biden1

Code

Memelang:  .spouse

SQL:  SELECT * FROM meme m0 WHERE m0.rid='spouse' 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