Simple Question (Direct)
Simple Question
Q3705843
P21
Q290
USER
What is the sex of Derek Newton ?
(Q3705843,P21,c(Q290))
action filter_type
action find
entity Q3705843
relation P21
type Q290
['Q3705843', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?p WHERE { resource:Q3705843 property:P21 ?p . ?p rdf:type ontology:Q290 }
Derek Newton
action filter_type
action find
entity Derek Newton
relation gender
type sex
['Derek Newton', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?p WHERE { resource:Derek_Newton property:gender ?p . ?p rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q3705843,P21,c(Q290))
action filter_type
action find
entity Q3705843
relation P21
type Q290
The sex of Derek Newton is a [ANSWER]
['Q3705843', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?p WHERE { resource:Q3705843 property:P21 ?p . ?p rdf:type ontology:Q290 }
male
The sex of Derek Newton is a male
male
action filter_type
action find
entity Derek Newton
relation gender
type sex
['Derek Newton', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?p WHERE { resource:Derek_Newton property:gender ?p . ?p rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3705843
P641
Q349
USER
What was the sport that Derek Newton was a part of ?
(Q3705843,P641,c(Q349))
action filter_type
action find
entity Q3705843
relation P641
type Q349
['Q3705843', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?q WHERE { resource:Q3705843 property:P641 ?q . ?q rdf:type ontology:Q349 }
Derek Newton
action filter_type
action find
entity Derek Newton
relation sport
type sport
['Derek Newton', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?q WHERE { resource:Derek_Newton property:sport ?q . ?q rdf:type ontology:sport }
[]
sport
Q41323
SYSTEM
American football
Q41323
(Q3705843,P641,c(Q349))
action filter_type
action find
entity Q3705843
relation P641
type Q349
The sport that Derek Newton was a part of was [ANSWER]
['Q3705843', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?q WHERE { resource:Q3705843 property:P641 ?q . ?q rdf:type ontology:Q349 }
American football
The sport that Derek Newton was a part of was American football
American football
action filter_type
action find
entity Derek Newton
relation sport
type sport
['Derek Newton', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?q WHERE { resource:Derek_Newton property:sport ?q . ?q rdf:type ontology:sport }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3705843
P27
Q15617994
USER
Which administrative territory does Derek Newton belong to ?
(Q3705843,P27,c(Q15617994))
action filter_type
action find
entity Q3705843
relation P27
type Q15617994
['Q3705843', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?w WHERE { resource:Q3705843 property:P27 ?w . ?w rdf:type ontology:Q15617994 }
Derek Newton
action filter_type
action find
entity Derek Newton
relation country of citizenship
type designation for an administrative territorial entity
['Derek Newton', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:Derek_Newton property:country_of_citizenship ?w . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
(Q3705843,P27,c(Q15617994))
action filter_type
action find
entity Q3705843
relation P27
type Q15617994
Derek Newton belongs to [ANSWER]
['Q3705843', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?w WHERE { resource:Q3705843 property:P27 ?w . ?w rdf:type ontology:Q15617994 }
United States of America
Derek Newton belongs to United States of America
United States of America
action filter_type
action find
entity Derek Newton
relation country of citizenship
type designation for an administrative territorial entity
['Derek Newton', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:Derek_Newton property:country_of_citizenship ?w . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q30
P162
Q838948
USER
Which work of art created that administrative territory ?
(c(Q838948),P162,Q30)
action filter_type
action find_reverse
entity Q30
relation P162
type Q838948
[{'concept': 'Q838948'}, 'P162', 'Q30']
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q838948 . ?v property:P162 resource:Q30 }
United States of America
action filter_type
action find_reverse
entity United States of America
relation producer
type work of art
[{'concept': 'work of art'}, 'producer', 'United States of America']
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:work_of_art . ?v property:producer resource:United_States_of_America }
[]
work of art
Q1193742
SYSTEM
The Thief of Bagdad
Q1193742
(c(Q838948),P162,Q30)
action filter_type
action find_reverse
entity Q30
relation P162
type Q838948
[ANSWER] created that administrative territory
[{'concept': 'Q838948'}, 'P162', 'Q30']
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q838948 . ?v property:P162 resource:Q30 }
The Thief of Bagdad
The Thief of Bagdad created that administrative territory
The Thief of Bagdad
action filter_type
action find_reverse
entity United States of America
relation producer
type work of art
[{'concept': 'work of art'}, 'producer', 'United States of America']
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:work_of_art . ?v property:producer resource:United_States_of_America }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q1193742 Q34457
P495
Q15617994
USER
Did that work of art originate Mestrino ?
(Q1193742,P495,Q34457)
action is_in
entity Q34457
action find
entity Q1193742
relation P495
['Q1193742', 'P495', 'Q34457']
ASK WHERE { resource:Q1193742 property:P495 resource:Q34457 }
The Thief of Bagdad Mestrino
action is_in
entity Mestrino
action find
entity The Thief of Bagdad
relation country of origin
['The Thief of Bagdad', 'country of origin', 'Mestrino']
ASK WHERE { resource:The_Thief_of_Bagdad property:country_of_origin resource:Mestrino }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q1193742,P495,Q34457)
action is_in
entity Q34457
action find
entity Q1193742
relation P495
[ANSWER]
['Q1193742', 'P495', 'Q34457']
ASK WHERE { resource:Q1193742 property:P495 resource:Q34457 }
No
action is_in
entity Mestrino
action find
entity The Thief of Bagdad
relation country of origin
['The Thief of Bagdad', 'country of origin', 'Mestrino']
ASK WHERE { resource:The_Thief_of_Bagdad property:country_of_origin resource:Mestrino }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q1613076 Q3705843
P106
Q12737077
USER
Which occupations do Derek Newton or Hermann Wiesflecker do for a living ?
OR((Q3705843,P106,c(Q12737077)), (Q1613076,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q3705843
relation P106
action find
entity Q1613076
relation P106
type Q12737077
{'OR': [['Q3705843', 'P106', {'concept': 'Q12737077'}], ['Q1613076', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Q1613076 property:P106 ?p } UNION { resource:Q3705843 property:P106 ?p } } . ?p rdf:type ontology:Q12737077 }
Hermann Wiesflecker Derek Newton
action filter_type
action union
action find
entity Derek Newton
relation occupation
action find
entity Hermann Wiesflecker
relation occupation
type occupation
{'OR': [['Derek Newton', 'occupation', {'concept': 'occupation'}], ['Hermann Wiesflecker', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Hermann_Wiesflecker property:occupation ?p } UNION { resource:Derek_Newton property:occupation ?p } } . ?p rdf:type ontology:occupation }
[]
occupation
Q17489339 Q3332711 Q19204627 Q1622272 Q17488465
SYSTEM
historian of the modern age, medievalist, American football player, university teacher, regional historian
Q17489339 Q3332711 Q19204627 Q1622272 Q17488465
OR((Q3705843,P106,c(Q12737077)), (Q1613076,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q3705843
relation P106
action find
entity Q1613076
relation P106
type Q12737077
Derek Newton or Hermann Wiesflecker do for a living an [ANSWERS]
{'OR': [['Q3705843', 'P106', {'concept': 'Q12737077'}], ['Q1613076', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Q1613076 property:P106 ?p } UNION { resource:Q3705843 property:P106 ?p } } . ?p rdf:type ontology:Q12737077 }
historian of the modern age medievalist American football player university teacher regional historian
Derek Newton or Hermann Wiesflecker do for a living an historian of the modern age, medievalist, American football player, university teacher and regional historian
historian of the modern age medievalist American football player university teacher regional historian
action filter_type
action union
action find
entity Derek Newton
relation occupation
action find
entity Hermann Wiesflecker
relation occupation
type occupation
{'OR': [['Derek Newton', 'occupation', {'concept': 'occupation'}], ['Hermann Wiesflecker', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Hermann_Wiesflecker property:occupation ?p } UNION { resource:Derek_Newton property:occupation ?p } } . ?p rdf:type ontology:occupation }
[]
Clarification
Comparative|Count over More/Less|Mult. entity type|Indirect
P101
Q12737077 Q2342494 Q43229
USER
How many occupations do approximately the same number of collectables and organizations belong to as that occupation ?
(c(Q2342494)|c(Q43229),P101,c(Q12737077))
[[{'concept': 'Q2342494'}, {'concept': 'Q43229'}], 'P101', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:Q627436 ?y } UNION { ?x property:Q627436 ?y } } . ?z rdf:type ontology:Q2342494 . ?y rdf:type ontology:Q528892 . ?x rdf:type ontology:Q43229 }
[[{'concept': 'collectable'}, {'concept': 'organization'}], 'field of work', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:field_of_work ?y } UNION { ?x property:field_of_work ?y } } . ?z rdf:type ontology:collectable . ?y rdf:type ontology:occupation . ?x rdf:type ontology:organization }
[]
occupation collectable organization
Comparative|Count over More/Less|Mult. entity type|Clarification
Q17489339
SYSTEM
Did you mean historian of the modern age ?
(c(Q2342494)|c(Q43229),P101,c(Q12737077))
[ANSWER]
[[{'concept': 'Q2342494'}, {'concept': 'Q43229'}], 'P101', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:Q627436 ?y } UNION { ?x property:Q627436 ?y } } . ?z rdf:type ontology:Q2342494 . ?y rdf:type ontology:Q528892 . ?x rdf:type ontology:Q43229 }
Did you mean historian of the modern age ?
historian of the modern age
[[{'concept': 'collectable'}, {'concept': 'organization'}], 'field of work', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:field_of_work ?y } UNION { ?x property:field_of_work ?y } } . ?z rdf:type ontology:collectable . ?y rdf:type ontology:occupation . ?x rdf:type ontology:organization }
[]
Comparative Reasoning (Count) (All)
USER
No, I meant university teacher. Could you tell me the answer for that?
(c(Q2342494)|c(Q43229),P101,c(Q12737077))
Q1622272
[[{'concept': 'Q2342494'}, {'concept': 'Q43229'}], 'P101', {'concept': 'Q12737077'}]
[[{'concept': 'collectable'}, {'concept': 'organization'}], 'field of work', {'concept': 'occupation'}]
[]
SYSTEM
116
Q6625963 Q4175034 Q177220 Q911554 Q80687 Q37226 Q39631 Q652122 Q765778 Q2995983 Q627325 Q33999 Q1288557 Q14915627 Q13418253 Q1495660 Q774306 Q4853732 Q706364 Q1231865 Q622807 Q584301 Q6138343 Q4610556 Q1259917 Q17156912 Q2516866 Q2259451 Q947873 Q333634 Q15949613 Q783906 Q1792450 Q11900058 Q3243461 Q5482740 Q3922505 Q1051088 Q138858 Q183888 Q593644 Q7888586 Q81096 Q170790 Q30185 Q15839135 Q2405480 Q1930187 Q14467526 Q6500773 Q212238 Q11642 Q937857 Q157509 Q128124 Q1999841 Q131524 Q1172458 Q2505739 Q1622272 Q653368 Q3455803 Q2707485 Q1402561 Q725440 Q2374149 Q17277248 Q2865798 Q326358 Q2599593 Q705908 Q4164507 Q2205972 Q899758 Q2855502 Q169470 Q36180 Q201788 Q15117302 Q483501 Q1114448 Q17167049 Q1423891 Q3665646 Q11063 Q1028181 Q1392297 Q901 Q1881523 Q18524075 Q1235146 Q36834 Q15995642 Q254651 Q3387717 Q354034 Q158852 Q2252262 Q245068 Q8011071 Q219477 Q16009483 Q1607826 Q154549 Q1709010 Q639669 Q191633 Q33231 Q2490358 Q644687 Q2732142 Q15980158 Q42603 Q3621491 Q11774891 Q6981670
(c(Q2342494)|c(Q43229),P101,c(Q12737077))
[ANSWER]
[[{'concept': 'Q2342494'}, {'concept': 'Q43229'}], 'P101', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:Q627436 ?y } UNION { ?x property:Q627436 ?y } } . ?z rdf:type ontology:Q2342494 . ?y rdf:type ontology:Q528892 . ?x rdf:type ontology:Q43229 }
novelist legislator singer business magnate secretary teacher physician sewing organist double-bassist graphic designer actor hieromonk musicologist philologist food critic surgeon children's writer art director educationist seiyū bassist wood carver model violinist malariologist publisher stage actor television presenter translator short story writer neurologist art historian explorer collector programmer music producer Commissioner of Baseball entertainer software developer chemist chemical engineer engineer mathematician mayor developmental biologist voice actor journalist linguist general practitioner civil servant pottery association football player legal guardian audio engineer faqih entrepreneur muhaddith hispanist university teacher district attorney director scenographer military leader prelate botanist member of the National Assembly of Armenia glass artist joiner germanist agency agreement art critic stained-glass artist violist chief of police physicist writer historian volleyball player artist cartoonist specialist in literature minister basketball player astronomer painter Train dispatcher scientist STEM fields mining engineer documentary filmmaker composer religious leader navigator theatre director type designer conductor rapper comedian animal trainer missionary sideshow performer editor carpenter software engineer musician mangaka photographer choreographer illustrator statistician non-fiction writer priest archaeologist ice hockey player Navajo weaving
116
[[{'concept': 'collectable'}, {'concept': 'organization'}], 'field of work', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:field_of_work ?y } UNION { ?x property:field_of_work ?y } } . ?z rdf:type ontology:collectable . ?y rdf:type ontology:occupation . ?x rdf:type ontology:organization }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q284229 Q30
P161 P6
Q502895
USER
Which people are the heads of the government of United States of America or starred in You've Got Mail ?
OR((Q30,P6,c(Q502895)), (Q284229,P161,c(Q502895)))
action filter_type
action union
action find
entity Q30
relation P6
action find
entity Q284229
relation P161
type Q502895
{'OR': [['Q30', 'P6', {'concept': 'Q502895'}], ['Q284229', 'P161', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Q30 property:P6 ?k } UNION { resource:Q284229 property:P161 ?k } } . ?k rdf:type ontology:Q502895 }
You've Got Mail United States of America
action filter_type
action union
action find
entity United States of America
relation head of government
action find
entity You've Got Mail
relation cast member
type common name
{'OR': [['United States of America', 'head of government', {'concept': 'common name'}], ["You've Got Mail", 'cast member', {'concept': 'common name'}]]}
SELECT DISTINCT ?k WHERE { { { resource:United_States_of_America property:head_of_government ?k } UNION { resource:You've_Got_Mail property:cast_member ?k } } . ?k rdf:type ontology:common_name }
[]
common name
Q11815 Q11813 Q35648 Q8612 Q11817 Q40069 Q204586 Q445115 Q11816 Q12312
SYSTEM
Some of them are James Monroe, James Madison, William Howard Taft, Andrew Johnson, Andrew Jackson, Sara Ramirez, Parker Posey, Heather Burns, John Quincy Adams, Franklin Pierce
Q35171 Q11815 Q11816 Q11817 Q9588 Q11812 Q11813 Q91 Q445115 Q446717 Q12325 Q33866 Q35648 Q35498 Q2263 Q11806 Q9582 Q491775 Q269869 Q11869 Q207 Q12306 Q35236 Q23685 Q9696 Q22686 Q34597 Q36023 Q11881 Q40069 Q9916 Q2915471 Q40321 Q4484894 Q35286 Q9640 Q35686 Q11820 Q35678 Q35041 Q8007 Q167498 Q1077549 Q34296 Q76 Q8612 Q12312 Q34836 Q23505 Q438908 Q23 Q1124 Q271856 Q11613 Q11896 Q204586 Q9960 Q11891 Q59382
OR((Q30,P6,c(Q502895)), (Q284229,P161,c(Q502895)))
action filter_type
action union
action find
entity Q30
relation P6
action find
entity Q284229
relation P161
type Q502895
[ANSWERS] are the heads of the government of United States of America or starred in You've Got Mail
{'OR': [['Q30', 'P6', {'concept': 'Q502895'}], ['Q284229', 'P161', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Q30 property:P6 ?k } UNION { resource:Q284229 property:P161 ?k } } . ?k rdf:type ontology:Q502895 }
Grover Cleveland James Monroe John Quincy Adams Andrew Jackson Richard Nixon Thomas Jefferson James Madison Abraham Lincoln Heather Burns Dabney Coleman James Buchanan Theodore Roosevelt William Howard Taft Chester A. Arthur Tom Hanks John Adams Gerald Ford Steve Zahn Greg Kinnear William Henry Harrison George W. Bush Millard Fillmore Herbert Hoover Jimmy Carter John F. Kennedy Donald Trump James A. Garfield Calvin Coolidge John Tyler Sara Ramirez Dwight D. Eisenhower Deborah Rush Dave Chappelle Katie Finneran Warren G. Harding Lyndon B. Johnson Rutherford B. Hayes Martin Van Buren Benjamin Harrison William McKinley Franklin Delano Roosevelt Meg Ryan Chris Messina Woodrow Wilson Barack Obama Andrew Johnson Franklin Pierce Ulysses S. Grant George H. W. Bush Cara Seymour George Washington Bill Clinton Jean Stapleton Harry S. Truman Zachary Taylor Parker Posey Ronald Reagan James K. Polk Hallee Hirsh
James Monroe, James Madison, William Howard Taft, Andrew Johnson, Andrew Jackson, Sara Ramirez, Parker Posey, Heather Burns, John Quincy Adams and Franklin Pierce are the heads of the government of United States of America or starred in You've Got Mail
James Monroe James Madison William Howard Taft Andrew Johnson Andrew Jackson Sara Ramirez Parker Posey Heather Burns John Quincy Adams Franklin Pierce
action filter_type
action union
action find
entity United States of America
relation head of government
action find
entity You've Got Mail
relation cast member
type common name
{'OR': [['United States of America', 'head of government', {'concept': 'common name'}], ["You've Got Mail", 'cast member', {'concept': 'common name'}]]}
SELECT DISTINCT ?k WHERE { { { resource:United_States_of_America property:head_of_government ?k } UNION { resource:You've_Got_Mail property:cast_member ?k } } . ?k rdf:type ontology:common_name }
[]