Results

ARBQ
george_washington_birth'birthgeorge_washington1
john_adams_birth'birthjohn_adams1
thomas_jefferson_birth'birththomas_jefferson1
james_madison_birth'birthjames_madison1
james_monroe_birth'birthjames_monroe1
john_quincy_adams_birth'birthjohn_quincy_adams1
andrew_jackson_birth'birthandrew_jackson1
martin_van_buren_birth'birthmartin_van_buren1
william_harrison_birth'birthwilliam_harrison1
john_tyler_birth'birthjohn_tyler1
james_polk_birth'birthjames_polk1
zachary_taylor_birth'birthzachary_taylor1
millard_fillmore_birth'birthmillard_fillmore1
franklin_pierce_birth'birthfranklin_pierce1
james_buchanan_birth'birthjames_buchanan1
abraham_lincoln_birth'birthabraham_lincoln1
andrew_johnson_birth'birthandrew_johnson1
ulysses_grant_birth'birthulysses_grant1
rutherford_hayes_birth'birthrutherford_hayes1
james_garfield_birth'birthjames_garfield1
chester_arthur_birth'birthchester_arthur1
grover_cleveland_birth'birthgrover_cleveland1
benjamin_harrison_birth'birthbenjamin_harrison1
william_mckinley_birth'birthwilliam_mckinley1
theodore_roosevelt_birth'birththeodore_roosevelt1
william_taft_birth'birthwilliam_taft1
woodrow_wilson_birth'birthwoodrow_wilson1
warren_harding_birth'birthwarren_harding1
calvin_coolidge_birth'birthcalvin_coolidge1
herbert_hoover_birth'birthherbert_hoover1
franklin_roosevelt_birth'birthfranklin_roosevelt1
harry_truman_birth'birthharry_truman1
dwight_eisenhower_birth'birthdwight_eisenhower1
john_kennedy_birth'birthjohn_kennedy1
lyndon_johnson_birth'birthlyndon_johnson1
richard_nixon_birth'birthrichard_nixon1
gerald_ford_birth'birthgerald_ford1
james_carter_birth'birthjames_carter1
ronald_reagan_birth'birthronald_reagan1
george_hw_bush_birth'birthgeorge_hw_bush1
william_clinton_birth'birthwilliam_clinton1
george_w_bush_birth'birthgeorge_w_bush1
barack_obama_birth'birthbarack_obama1
donald_trump_birth'birthdonald_trump1
joseph_biden_birth'birthjoseph_biden1

Code

Memelang:  'birth

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="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