Results

ARBQ
martha_washington'spousegeorge_washington1
abigail_adams'spousejohn_adams1
martha_wayles_skelton_jefferson'spousethomas_jefferson1
dolley_madison'spousejames_madison1
elizabeth_kortright_monroe'spousejames_monroe1
louisa_catherine_johnson_adams'spousejohn_quincy_adams1
rachel_donelson_jackson'spouseandrew_jackson1
hannah_hoes_van_buren'spousemartin_van_buren1
anna_tuthill_symmes_harrison'spousewilliam_harrison1
letitia_christian_tyler'spousejohn_tyler1
julia_gardiner_tyler'spousejohn_tyler1
sarah_childress_polk'spousejames_polk1
margaret_mackall_smith_taylor'spousezachary_taylor1
abigail_powers_fillmore'spousemillard_fillmore1
jane_means_appleton_pierce'spousefranklin_pierce1
mary_todd_lincoln'spouseabraham_lincoln1
eliza_mccardle_johnson'spouseandrew_johnson1
julia_dent_grant'spouseulysses_grant1
lucy_webb_hayes'spouserutherford_hayes1
lucretia_rudolph_garfield'spousejames_garfield1
ellen_lewis_herndon_arthur'spousechester_arthur1
frances_folsom_cleveland'spousegrover_cleveland1
lavinia_scott_harrison'spousebenjamin_harrison1
ida_saxton_mckinley'spousewilliam_mckinley1
alice_hathaway_lee_roosevelt'spousetheodore_roosevelt1
edith_kermit_carow'spousetheodore_roosevelt1
helen_herron_taft'spousewilliam_taft1
ellen_louise_axson'spousewoodrow_wilson1
edith_wilson'spousewoodrow_wilson1
florence_kling_harding'spousewarren_harding1
grace_anna_goodhue_coolidge'spousecalvin_coolidge1
lou_henry_hoover'spouseherbert_hoover1
eleanor_roosevelt'spousefranklin_roosevelt1
bess_truman'spouseharry_truman1
mamie_eisenhower'spousedwight_eisenhower1
jacqueline_kennedy_onassis'spousejohn_kennedy1
lady_bird_johnson'spouselyndon_johnson1
pat_nixon'spouserichard_nixon1
betty_ford'spousegerald_ford1
rosalynn_carter'spousejames_carter1
nancy_reagan'spouseronald_reagan1
barbara_bush'spousegeorge_hw_bush1
hillary_clinton'spousewilliam_clinton1
laura_bush'spousegeorge_w_bush1
michelle_obama'spousebarack_obama1
melania_trump'spousedonald_trump1
jill_biden'spousejoseph_biden1

Code

Memelang:  'spouse

SQL:  SELECT m0.bid AS aid, CONCAT("'", m0.rid) AS rid, m0.aid AS bid, m0.qnt AS qnt 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