Results

ARBQ
surveyorprofessionvarious1
planterprofessionvarious1
military_officerprofessionvarious1
harvardprofessionvarious1
lawyerprofessionvarious1
diplomatprofessionvarious1
governorprofessionvarious1
secretary_of_stateprofessionvarious1
senatorprofessionvarious1
military_leaderprofessionvarious1
congressmanprofessionvarious1
state_comptrollerprofessionvarious1
port_customs_collectorprofessionvarious1
minister_to_the_united_kingdomprofessionvarious1
tailorprofessionvarious1
buffalo_mayorprofessionvarious1
authorprofessionvarious1
solicitor_generalprofessionvarious1
judgeprofessionvarious1
governor_general_of_the_philippinesprofessionvarious1
secretary_of_warprofessionvarious1
academicprofessionvarious1
president_of_princeton_universityprofessionvarious1
newspaper_publisherprofessionvarious1
vice_presidentprofessionvarious1
engineerprofessionvarious1
mining_executiveprofessionvarious1
secretary_of_commerceprofessionvarious1
assistant_secretary_of_the_navyprofessionvarious1
farmerprofessionvarious1
clerkprofessionvarious1
supreme_allied_commanderprofessionvarious1
naval_officerprofessionvarious1
southwest_texas_state_teachersprofessionvarious1
navy_submarine_officerprofessionvarious1
actorprofessionvarious1
cia_directorprofessionvarious1
arkansas_attorney_generalprofessionvarious1
businessmanprofessionvarious1
air_force_reserveprofessionvarious1
state_senatorprofessionvarious1
television_personalityprofessionvarious1

Code

Memelang:  .profession

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