Simple Question (Direct)
Simple Question
Q320664
P1412
Q34770
USER
Which language is John Maddox Roberts capable of writing ?
(Q320664,P1412,c(Q34770))
action filter_type
action find
entity Q320664
relation P1412
type Q34770
['Q320664', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q34770 . resource:Q320664 property:P1412 ?c }
John Maddox Roberts
action filter_type
action find
entity John Maddox Roberts
relation languages spoken, written or signed
type language
['John Maddox Roberts', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:language . resource:John_Maddox_Roberts property:languages_spoken,_written_or_signed ?c }
[]
language
Q1860
SYSTEM
English
Q1860
(Q320664,P1412,c(Q34770))
action filter_type
action find
entity Q320664
relation P1412
type Q34770
[ANSWER] is John Maddox Roberts capable of writing
['Q320664', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q34770 . resource:Q320664 property:P1412 ?c }
English
English is John Maddox Roberts capable of writing
English
action filter_type
action find
entity John Maddox Roberts
relation languages spoken, written or signed
type language
['John Maddox Roberts', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:language . resource:John_Maddox_Roberts property:languages_spoken,_written_or_signed ?c }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q320664
P21
Q290
USER
Which sex does John Maddox Roberts have ?
(Q320664,P21,c(Q290))
action filter_type
action find
entity Q320664
relation P21
type Q290
['Q320664', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?j WHERE { resource:Q320664 property:P21 ?j . ?j rdf:type ontology:Q290 }
John Maddox Roberts
action filter_type
action find
entity John Maddox Roberts
relation gender
type sex
['John Maddox Roberts', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?j WHERE { resource:John_Maddox_Roberts property:gender ?j . ?j rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q320664,P21,c(Q290))
action filter_type
action find
entity Q320664
relation P21
type Q290
John Maddox Roberts has a [ANSWER]
['Q320664', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?j WHERE { resource:Q320664 property:P21 ?j . ?j rdf:type ontology:Q290 }
male
John Maddox Roberts has a male
male
action filter_type
action find
entity John Maddox Roberts
relation gender
type sex
['John Maddox Roberts', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?j WHERE { resource:John_Maddox_Roberts property:gender ?j . ?j rdf:type ontology:sex }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q22978688 Q320664
P27 P17
Q15617994
USER
Which administrative territories are the countries of citizenship of John Maddox Roberts or are Ronnie Primary School located in ?
OR((Q320664,P27,c(Q15617994)), (Q22978688,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q320664
relation P27
action find
entity Q22978688
relation P17
type Q15617994
{'OR': [['Q320664', 'P27', {'concept': 'Q15617994'}], ['Q22978688', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Q320664 property:P27 ?j } UNION { resource:Q22978688 property:P17 ?j } } . ?j rdf:type ontology:Q15617994 }
Ronnie Primary School John Maddox Roberts
action filter_type
action union
action find
entity John Maddox Roberts
relation country of citizenship
action find
entity Ronnie Primary School
relation country
type designation for an administrative territorial entity
{'OR': [['John Maddox Roberts', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Ronnie Primary School', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?j WHERE { { { resource:John_Maddox_Roberts property:country_of_citizenship ?j } UNION { resource:Ronnie_Primary_School property:country ?j } } . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q1036 Q30
SYSTEM
Uganda, United States of America
Q1036 Q30
OR((Q320664,P27,c(Q15617994)), (Q22978688,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q320664
relation P27
action find
entity Q22978688
relation P17
type Q15617994
[ANSWERS] are the countries of citizenship of John Maddox Roberts or are Ronnie Primary School located in
{'OR': [['Q320664', 'P27', {'concept': 'Q15617994'}], ['Q22978688', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Q320664 property:P27 ?j } UNION { resource:Q22978688 property:P17 ?j } } . ?j rdf:type ontology:Q15617994 }
Uganda United States of America
Uganda and United States of America are the countries of citizenship of John Maddox Roberts or are Ronnie Primary School located in
Uganda United States of America
action filter_type
action union
action find
entity John Maddox Roberts
relation country of citizenship
action find
entity Ronnie Primary School
relation country
type designation for an administrative territorial entity
{'OR': [['John Maddox Roberts', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Ronnie Primary School', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?j WHERE { { { resource:John_Maddox_Roberts property:country_of_citizenship ?j } UNION { resource:Ronnie_Primary_School property:country ?j } } . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q8261 Q320664
P136 P50
Q2342494
USER
Which collectables were written by John Maddox Roberts and have novel as genre ?
AND((c(Q2342494),P50,Q320664), (c(Q2342494),P136,Q8261))
action filter_type
action intersection
action find_reverse
entity Q320664
relation P50
action find_reverse
entity Q8261
relation P136
type Q2342494
{'AND': [[{'concept': 'Q2342494'}, 'P50', 'Q320664'], [{'concept': 'Q2342494'}, 'P136', 'Q8261']]}
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q2342494 . ?h property:P50 resource:Q320664 . ?h property:P136 resource:Q8261 }
novel John Maddox Roberts
action filter_type
action intersection
action find_reverse
entity John Maddox Roberts
relation author
action find_reverse
entity novel
relation genre
type collectable
{'AND': [[{'concept': 'collectable'}, 'author', 'John Maddox Roberts'], [{'concept': 'collectable'}, 'genre', 'novel']]}
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:collectable . ?h property:author resource:John_Maddox_Roberts . ?h property:genre resource:novel }
[]
collectable
Q5158130 Q17052599 Q5158124 Q5158175 Q17053036 Q5158188 Q5158153 Q15032954 Q4658938 Q5158119
SYSTEM
Some of them are Conan and the Treasure of Python, The Temple of the Muses, Conan and the Manhunters, Conan the Marauder, The Tribune's Curse, Conan the Valorous, Conan the Champion, Conan the Rogue, A Point of Law, Conan and the Amazon
Q7572246 Q5158124 Q5158188 Q5158150 Q4658938 Q17053036 Q17052599 Q5158175 Q5158119 Q5158130 Q15032954 Q5158153
AND((c(Q2342494),P50,Q320664), (c(Q2342494),P136,Q8261))
action filter_type
action intersection
action find_reverse
entity Q320664
relation P50
action find_reverse
entity Q8261
relation P136
type Q2342494
[ANSWERS] were written by John Maddox Roberts and have novel as genre
{'AND': [[{'concept': 'Q2342494'}, 'P50', 'Q320664'], [{'concept': 'Q2342494'}, 'P136', 'Q8261']]}
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q2342494 . ?h property:P50 resource:Q320664 . ?h property:P136 resource:Q8261 }
Space Angel Conan and the Manhunters Conan the Valorous Conan the Bold A Point of Law The Tribune's Curse The Temple of the Muses Conan the Marauder Conan and the Amazon Conan and the Treasure of Python Conan the Rogue Conan the Champion
Conan and the Treasure of Python, The Temple of the Muses, Conan and the Manhunters, Conan the Marauder, The Tribune's Curse, Conan the Valorous, Conan the Champion, Conan the Rogue, A Point of Law and Conan and the Amazon were written by John Maddox Roberts and have novel as genre
Conan and the Treasure of Python The Temple of the Muses Conan and the Manhunters Conan the Marauder The Tribune's Curse Conan the Valorous Conan the Champion Conan the Rogue A Point of Law Conan and the Amazon
action filter_type
action intersection
action find_reverse
entity John Maddox Roberts
relation author
action find_reverse
entity novel
relation genre
type collectable
{'AND': [[{'concept': 'collectable'}, 'author', 'John Maddox Roberts'], [{'concept': 'collectable'}, 'genre', 'novel']]}
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:collectable . ?h property:author resource:John_Maddox_Roberts . ?h property:genre resource:novel }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q4806480 Q5158153
P495
Q15617994
USER
Which administrative territories did Conan the Champion or Asia Uncut originate ?
OR((Q5158153,P495,c(Q15617994)), (Q4806480,P495,c(Q15617994)))
action filter_type
action union
action find
entity Q5158153
relation P495
action find
entity Q4806480
relation P495
type Q15617994
{'OR': [['Q5158153', 'P495', {'concept': 'Q15617994'}], ['Q4806480', 'P495', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q15617994 . { ?i property:P495 ?g . VALUES ( ?i ) { ( resource:Q5158153 ) ( resource:Q4806480 ) } } }
Asia Uncut Conan the Champion
action filter_type
action union
action find
entity Conan the Champion
relation country of origin
action find
entity Asia Uncut
relation country of origin
type designation for an administrative territorial entity
{'OR': [['Conan the Champion', 'country of origin', {'concept': 'designation for an administrative territorial entity'}], ['Asia Uncut', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . { ?i property:country_of_origin ?g . VALUES ( ?i ) { ( resource:Conan_the_Champion ) ( resource:Asia_Uncut ) } } }
[]
designation for an administrative territorial entity
Q148 Q30
SYSTEM
People's Republic of China, United States of America
Q148 Q30
OR((Q5158153,P495,c(Q15617994)), (Q4806480,P495,c(Q15617994)))
action filter_type
action union
action find
entity Q5158153
relation P495
action find
entity Q4806480
relation P495
type Q15617994
Conan the Champion or Asia Uncut originated from [ANSWERS]
{'OR': [['Q5158153', 'P495', {'concept': 'Q15617994'}], ['Q4806480', 'P495', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q15617994 . { ?i property:P495 ?g . VALUES ( ?i ) { ( resource:Q5158153 ) ( resource:Q4806480 ) } } }
People's Republic of China United States of America
Conan the Champion or Asia Uncut originated from People's Republic of China and United States of America
People's Republic of China United States of America
action filter_type
action union
action find
entity Conan the Champion
relation country of origin
action find
entity Asia Uncut
relation country of origin
type designation for an administrative territorial entity
{'OR': [['Conan the Champion', 'country of origin', {'concept': 'designation for an administrative territorial entity'}], ['Asia Uncut', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . { ?i property:country_of_origin ?g . VALUES ( ?i ) { ( resource:Conan_the_Champion ) ( resource:Asia_Uncut ) } } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q24555195 Q30
P57 P6
Q502895
USER
Which people are United States of America the head of goverment of or served as the directed of Love Station ?
OR((Q30,P6,c(Q502895)), (Q24555195,P57,c(Q502895)))
action filter_type
action union
action find
entity Q30
relation P6
action find
entity Q24555195
relation P57
type Q502895
{'OR': [['Q30', 'P6', {'concept': 'Q502895'}], ['Q24555195', 'P57', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q502895 . { { resource:Q30 property:P6 ?b } UNION { resource:Q24555195 property:P57 ?b } } }
Love Station United States of America
action filter_type
action union
action find
entity United States of America
relation head of government
action find
entity Love Station
relation director
type common name
{'OR': [['United States of America', 'head of government', {'concept': 'common name'}], ['Love Station', 'director', {'concept': 'common name'}]]}
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:common_name . { { resource:United_States_of_America property:head_of_government ?b } UNION { resource:Love_Station property:director ?b } } }
[]
common name
Q11881 Q11820 Q76 Q35286 Q9588 Q23 Q23505 Q22686 Q12312 Q8612
SYSTEM
Some of them are John Tyler, Martin Van Buren, Barack Obama, Warren G. Harding, Richard Nixon, George Washington, George H. W. Bush, Donald Trump, Franklin Pierce, Andrew Johnson
Q35171 Q11815 Q11816 Q11817 Q9588 Q11812 Q12306 Q91 Q12325 Q33866 Q35648 Q35498 Q9582 Q11869 Q207 Q11813 Q35236 Q23685 Q9696 Q15723664 Q22686 Q34597 Q36023 Q11881 Q9916 Q12312 Q11806 Q35286 Q9640 Q35686 Q11820 Q35678 Q35041 Q34296 Q76 Q8612 Q34836 Q23505 Q23 Q1124 Q11613 Q11896 Q8007 Q9960 Q11891
OR((Q30,P6,c(Q502895)), (Q24555195,P57,c(Q502895)))
action filter_type
action union
action find
entity Q30
relation P6
action find
entity Q24555195
relation P57
type Q502895
[ANSWERS] are United States of America the head of goverment of or served as the directed of Love Station
{'OR': [['Q30', 'P6', {'concept': 'Q502895'}], ['Q24555195', 'P57', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q502895 . { { resource:Q30 property:P6 ?b } UNION { resource:Q24555195 property:P57 ?b } } }
Grover Cleveland James Monroe John Quincy Adams Andrew Jackson Richard Nixon Thomas Jefferson Millard Fillmore Abraham Lincoln James Buchanan Theodore Roosevelt William Howard Taft Chester A. Arthur Gerald Ford William Henry Harrison George W. Bush James Madison Herbert Hoover Jimmy Carter John F. Kennedy Ashok Pati Donald Trump James A. Garfield Calvin Coolidge John Tyler Dwight D. Eisenhower Franklin Pierce John Adams Warren G. Harding Lyndon B. Johnson Rutherford B. Hayes Martin Van Buren Benjamin Harrison William McKinley Woodrow Wilson Barack Obama Andrew Johnson Ulysses S. Grant George H. W. Bush George Washington Bill Clinton Harry S. Truman Zachary Taylor Franklin Delano Roosevelt Ronald Reagan James K. Polk
John Tyler, Martin Van Buren, Barack Obama, Warren G. Harding, Richard Nixon, George Washington, George H. W. Bush, Donald Trump, Franklin Pierce and Andrew Johnson are United States of America the head of goverment of or served as the directed of Love Station
John Tyler Martin Van Buren Barack Obama Warren G. Harding Richard Nixon George Washington George H. W. Bush Donald Trump Franklin Pierce Andrew Johnson
action filter_type
action union
action find
entity United States of America
relation head of government
action find
entity Love Station
relation director
type common name
{'OR': [['United States of America', 'head of government', {'concept': 'common name'}], ['Love Station', 'director', {'concept': 'common name'}]]}
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:common_name . { { resource:United_States_of_America property:head_of_government ?b } UNION { resource:Love_Station property:director ?b } } }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q11881 Q11820 Q76 Q35286 Q9588 Q23 Q23505 Q22686 Q12312 Q8612
P22
Q502895
USER
Who were the dad of those ones ?
(Q11881,P22,c(Q502895)) (Q11820,P22,c(Q502895)) (Q76,P22,c(Q502895)) (Q35286,P22,c(Q502895)) (Q9588,P22,c(Q502895)) (Q23,P22,c(Q502895)) (Q23505,P22,c(Q502895)) (Q22686,P22,c(Q502895)) (Q12312,P22,c(Q502895)) (Q8612,P22,c(Q502895))
action filter_type
action find
entity prev_answer
relation P22
type Q502895
['Q11881', 'P22', {'concept': 'Q502895'}] ['Q11820', 'P22', {'concept': 'Q502895'}] ['Q76', 'P22', {'concept': 'Q502895'}] ['Q35286', 'P22', {'concept': 'Q502895'}] ['Q9588', 'P22', {'concept': 'Q502895'}] ['Q23', 'P22', {'concept': 'Q502895'}] ['Q23505', 'P22', {'concept': 'Q502895'}] ['Q22686', 'P22', {'concept': 'Q502895'}] ['Q12312', 'P22', {'concept': 'Q502895'}] ['Q8612', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?v WHERE { VALUES ( ?p ) { ( resource:Q35171 ) ( resource:Q11815 ) ( resource:Q11816 ) } . ?v rdf:type ontology:Q502895 . ?p property:P22 ?v }
John Tyler Martin Van Buren Barack Obama Warren G. Harding Richard Nixon George Washington George H. W. Bush Donald Trump Franklin Pierce Andrew Johnson
action filter_type
action find
entity prev_answer
relation father
type common name
['John Tyler', 'father', {'concept': 'common name'}] ['Martin Van Buren', 'father', {'concept': 'common name'}] ['Barack Obama', 'father', {'concept': 'common name'}] ['Warren G. Harding', 'father', {'concept': 'common name'}] ['Richard Nixon', 'father', {'concept': 'common name'}] ['George Washington', 'father', {'concept': 'common name'}] ['George H. W. Bush', 'father', {'concept': 'common name'}] ['Donald Trump', 'father', {'concept': 'common name'}] ['Franklin Pierce', 'father', {'concept': 'common name'}] ['Andrew Johnson', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?v WHERE { VALUES ( ?p ) { ( resource:Grover_Cleveland ) ( resource:James_Monroe ) ( resource:John_Quincy_Adams ) } . ?v rdf:type ontology:common_name . ?p property:father ?v }
[]
common name
Q324742 Q649593 Q3752663
SYSTEM
Prescott Bush, Barack Obama, Sr., Fred Trump
Q721855 Q20767892 Q649593 Q20767999 Q5479914 Q768342 Q324742 Q3752663 Q817649 Q6118810
(Q11881,P22,c(Q502895)) (Q11820,P22,c(Q502895)) (Q76,P22,c(Q502895)) (Q35286,P22,c(Q502895)) (Q9588,P22,c(Q502895)) (Q23,P22,c(Q502895)) (Q23505,P22,c(Q502895)) (Q22686,P22,c(Q502895)) (Q12312,P22,c(Q502895)) (Q8612,P22,c(Q502895))
action filter_type
action find
entity prev_answer
relation P22
type Q502895
The dad of those ones were George [ANSWERS]
['Q11881', 'P22', {'concept': 'Q502895'}] ['Q11820', 'P22', {'concept': 'Q502895'}] ['Q76', 'P22', {'concept': 'Q502895'}] ['Q35286', 'P22', {'concept': 'Q502895'}] ['Q9588', 'P22', {'concept': 'Q502895'}] ['Q23', 'P22', {'concept': 'Q502895'}] ['Q23505', 'P22', {'concept': 'Q502895'}] ['Q22686', 'P22', {'concept': 'Q502895'}] ['Q12312', 'P22', {'concept': 'Q502895'}] ['Q8612', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?v WHERE { VALUES ( ?p ) { ( resource:Q35171 ) ( resource:Q11815 ) ( resource:Q11816 ) } . ?v rdf:type ontology:Q502895 . ?p property:P22 ?v }
John Tyler Abraham Van Buren Barack Obama, Sr. George Tryon Harding, Sr. Francis A. Nixon Augustine Washington Prescott Bush Fred Trump Benjamin Pierce Jacob Johnson
The dad of those ones were George Prescott Bush, Barack Obama, Sr. and Fred Trump
Prescott Bush Barack Obama, Sr. Fred Trump
action filter_type
action find
entity prev_answer
relation father
type common name
['John Tyler', 'father', {'concept': 'common name'}] ['Martin Van Buren', 'father', {'concept': 'common name'}] ['Barack Obama', 'father', {'concept': 'common name'}] ['Warren G. Harding', 'father', {'concept': 'common name'}] ['Richard Nixon', 'father', {'concept': 'common name'}] ['George Washington', 'father', {'concept': 'common name'}] ['George H. W. Bush', 'father', {'concept': 'common name'}] ['Donald Trump', 'father', {'concept': 'common name'}] ['Franklin Pierce', 'father', {'concept': 'common name'}] ['Andrew Johnson', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?v WHERE { VALUES ( ?p ) { ( resource:Grover_Cleveland ) ( resource:James_Monroe ) ( resource:John_Quincy_Adams ) } . ?v rdf:type ontology:common_name . ?p property:father ?v }
[]
Clarification
Simple Question|Single Entity|Indirect
Q3752663
P1196
Q1931388
USER
What manner did that person die ?
(Q3752663,P1196,c(Q1931388))
action filter_type
action find
entity Q3752663
relation P1196
type Q1931388
['Q3752663', 'P1196', {'concept': 'Q1931388'}]
SELECT DISTINCT ?q WHERE { resource:Q3752663 property:P1196 ?q . ?q rdf:type ontology:Q1931388 }
Fred Trump
action filter_type
action find
entity Fred Trump
relation manner of death
type cause of death
['Fred Trump', 'manner of death', {'concept': 'cause of death'}]
SELECT DISTINCT ?q WHERE { resource:Fred_Trump property:manner_of_death ?q . ?q rdf:type ontology:cause_of_death }
[]
cause of death
Clarification for simple ques.
Q3752663
SYSTEM
Did you mean Fred Trump ?
Q324742 Q649593 Q3752663
(Q324742,P1196,c(Q1931388)) (Q649593,P1196,c(Q1931388)) (Q3752663,P1196,c(Q1931388))
[ANSWER]
['Q324742', 'P1196', {'concept': 'Q1931388'}] ['Q649593', 'P1196', {'concept': 'Q1931388'}] ['Q3752663', 'P1196', {'concept': 'Q1931388'}]
SELECT DISTINCT ?q WHERE { resource:Q3752663 property:P1196 ?q . ?q rdf:type ontology:Q1931388 }
Prescott Bush Barack Obama, Sr. Fred Trump
Did you mean Fred Trump ?
Fred Trump
['Prescott Bush', 'manner of death', {'concept': 'cause of death'}] ['Barack Obama, Sr.', 'manner of death', {'concept': 'cause of death'}] ['Fred Trump', 'manner of death', {'concept': 'cause of death'}]
SELECT DISTINCT ?q WHERE { resource:Fred_Trump property:manner_of_death ?q . ?q rdf:type ontology:cause_of_death }
[]
Simple Question (Coreferenced)
USER
Yes
(Q3752663,P1196,c(Q1931388))
['Q3752663', 'P1196', {'concept': 'Q1931388'}]
['Fred Trump', 'manner of death', {'concept': 'cause of death'}]
[]
Q3739104
SYSTEM
natural causes
Q3739104
(Q3752663,P1196,c(Q1931388))
action filter_type
action find
entity Q3752663
relation P1196
type Q1931388
That person died in [ANSWER]
['Q3752663', 'P1196', {'concept': 'Q1931388'}]
SELECT DISTINCT ?q WHERE { resource:Q3752663 property:P1196 ?q . ?q rdf:type ontology:Q1931388 }
natural causes
That person died in natural causes
natural causes
action filter_type
action find
entity Fred Trump
relation manner of death
type cause of death
['Fred Trump', 'manner of death', {'concept': 'cause of death'}]
SELECT DISTINCT ?q WHERE { resource:Fred_Trump property:manner_of_death ?q . ?q rdf:type ontology:cause_of_death }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q5559182 Q320664
P27
Q15617994
USER
Which administrative territories are John Maddox Roberts or Manuel Asencio Terrero a civilian of ?
OR((Q320664,P27,c(Q15617994)), (Q5559182,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q320664
relation P27
action find
entity Q5559182
relation P27
type Q15617994
{'OR': [['Q320664', 'P27', {'concept': 'Q15617994'}], ['Q5559182', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?u WHERE { { VALUES ( ?f ) { ( resource:Q5559182 ) ( resource:Q320664 ) } . ?f property:P27 ?u } . ?u rdf:type ontology:Q15617994 }
Manuel Asencio Terrero John Maddox Roberts
action filter_type
action union
action find
entity John Maddox Roberts
relation country of citizenship
action find
entity Manuel Asencio Terrero
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['John Maddox Roberts', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Manuel Asencio Terrero', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?u WHERE { { VALUES ( ?f ) { ( resource:Manuel_Asencio_Terrero ) ( resource:John_Maddox_Roberts ) } . ?f property:country_of_citizenship ?u } . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q29 Q30
SYSTEM
Spain, United States of America
Q29 Q30
OR((Q320664,P27,c(Q15617994)), (Q5559182,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q320664
relation P27
action find
entity Q5559182
relation P27
type Q15617994
[ANSWERS] are John Maddox Roberts or Manuel Asencio Terrero a civilian of
{'OR': [['Q320664', 'P27', {'concept': 'Q15617994'}], ['Q5559182', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?u WHERE { { VALUES ( ?f ) { ( resource:Q5559182 ) ( resource:Q320664 ) } . ?f property:P27 ?u } . ?u rdf:type ontology:Q15617994 }
Spain United States of America
Spain and United States of America are John Maddox Roberts or Manuel Asencio Terrero a civilian of
Spain United States of America
action filter_type
action union
action find
entity John Maddox Roberts
relation country of citizenship
action find
entity Manuel Asencio Terrero
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['John Maddox Roberts', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Manuel Asencio Terrero', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?u WHERE { { VALUES ( ?f ) { ( resource:Manuel_Asencio_Terrero ) ( resource:John_Maddox_Roberts ) } . ?f property:country_of_citizenship ?u } . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q8210812 Q5158124
P495
Q15617994
USER
Which administrative territories are the origins of Conan and the Manhunters or Help Me to Live ?
OR((Q5158124,P495,c(Q15617994)), (Q8210812,P495,c(Q15617994)))
action filter_type
action union
action find
entity Q5158124
relation P495
action find
entity Q8210812
relation P495
type Q15617994
{'OR': [['Q5158124', 'P495', {'concept': 'Q15617994'}], ['Q8210812', 'P495', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q15617994 . { VALUES ( ?z ) { ( resource:Q5158124 ) ( resource:Q8210812 ) } . ?z property:P495 ?k } }
Help Me to Live Conan and the Manhunters
action filter_type
action union
action find
entity Conan and the Manhunters
relation country of origin
action find
entity Help Me to Live
relation country of origin
type designation for an administrative territorial entity
{'OR': [['Conan and the Manhunters', 'country of origin', {'concept': 'designation for an administrative territorial entity'}], ['Help Me to Live', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . { VALUES ( ?z ) { ( resource:Conan_and_the_Manhunters ) ( resource:Help_Me_to_Live ) } . ?z property:country_of_origin ?k } }
[]
designation for an administrative territorial entity
Q30 Q414
SYSTEM
United States of America, Argentina
Q30 Q414
OR((Q5158124,P495,c(Q15617994)), (Q8210812,P495,c(Q15617994)))
action filter_type
action union
action find
entity Q5158124
relation P495
action find
entity Q8210812
relation P495
type Q15617994
[ANSWERS] are the origins of Conan and the Manhunters or Help Me to live
{'OR': [['Q5158124', 'P495', {'concept': 'Q15617994'}], ['Q8210812', 'P495', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q15617994 . { VALUES ( ?z ) { ( resource:Q5158124 ) ( resource:Q8210812 ) } . ?z property:P495 ?k } }
United States of America Argentina
United States of America and Argentina are the origins of Conan and the Manhunters or Help Me to live
United States of America Argentina
action filter_type
action union
action find
entity Conan and the Manhunters
relation country of origin
action find
entity Help Me to Live
relation country of origin
type designation for an administrative territorial entity
{'OR': [['Conan and the Manhunters', 'country of origin', {'concept': 'designation for an administrative territorial entity'}], ['Help Me to Live', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . { VALUES ( ?z ) { ( resource:Conan_and_the_Manhunters ) ( resource:Help_Me_to_Live ) } . ?z property:country_of_origin ?k } }
[]
Clarification
Comparative|Count over More/Less|Mult. entity type|Indirect
P495
Q15617994 Q838948 Q15416
USER
How many administrative territories are the countries of origin of less number of works of art and television programs than that administrative territory ?
(c(Q838948)|c(Q15416),P495,c(Q15617994))
[[{'concept': 'Q838948'}, {'concept': 'Q15416'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:P495 ?y } UNION { ?x property:P495 ?y } } . ?z rdf:type ontology:Q838948 . ?y rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q15416 }
[[{'concept': 'work of art'}, {'concept': 'television program'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:country_of_origin ?y } UNION { ?x property:country_of_origin ?y } } . ?z rdf:type ontology:work_of_art . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:television_program }
[]
designation for an administrative territorial entity work of art television program
Comparative|Count over More/Less|Mult. entity type|Clarification
Q30
SYSTEM
Did you mean United States of America ?
(c(Q838948)|c(Q15416),P495,c(Q15617994))
[ANSWER]
[[{'concept': 'Q838948'}, {'concept': 'Q15416'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:P495 ?y } UNION { ?x property:P495 ?y } } . ?z rdf:type ontology:Q838948 . ?y rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q15416 }
Did you mean United States of America ?
United States of America
[[{'concept': 'work of art'}, {'concept': 'television program'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:country_of_origin ?y } UNION { ?x property:country_of_origin ?y } } . ?z rdf:type ontology:work_of_art . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:television_program }
[]
Comparative Reasoning (Count) (All)
USER
No, I meant Argentina. Could you tell me the answer for that?
(c(Q838948)|c(Q15416),P495,c(Q15617994))
Q414
[[{'concept': 'Q838948'}, {'concept': 'Q15416'}], 'P495', {'concept': 'Q15617994'}]
[[{'concept': 'work of art'}, {'concept': 'television program'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
[]
SYSTEM
159
Q805 Q804 Q801 Q800 Q1462 Q419 Q55 Q12536 Q262 Q148 Q783 Q265 Q37 Q36678 Q712 Q711 Q717 Q837 Q252 Q1460 Q399 Q398 Q403 Q657 Q258 Q45 Q159 Q43 Q41 Q155 Q792 Q790 Q4628 Q796 Q794 Q954 Q889 Q958 Q881 Q986 Q826 Q822 Q241 Q242 Q244 Q811 Q153136 Q33 Q32 Q31 Q924 Q36 Q34 Q928 Q39 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q819 Q424 Q730 Q1013 Q159626 Q236 Q230 Q232 Q233 Q238 Q20 Q1045 Q1044 Q1041 Q27 Q28 Q921 Q1049 Q1025 Q1027 Q1020 Q189 Q843 Q184 Q1029 Q1028 Q736 Q786 Q227 Q225 Q224 Q223 Q222 Q221 Q229 Q347 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q298 Q115 Q114 Q117 Q754 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q1009 Q1008 Q971 Q970 Q239502 Q686 Q836 Q574 Q874 Q79 Q77 Q858 Q878 Q774 Q948 Q817 Q810 Q1019 Q813 Q1014 Q1016 Q1011 Q945 Q672 Q176 Q863 Q869 Q953
(c(Q838948)|c(Q15416),P495,c(Q15617994))
[ANSWER]
[[{'concept': 'Q838948'}, {'concept': 'Q15416'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:P495 ?y } UNION { ?x property:P495 ?y } } . ?z rdf:type ontology:Q838948 . ?y rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q15416 }
Yemen Panama Israel Costa Rica Sardinia Peru Netherlands Abbasid caliphate Algeria People's Republic of China Honduras Uzbekistan Lithuania West Bank Fiji Mongolia Venezuela Nepal Indonesia Sicily Armenia Bahrain Serbia Chad South Africa Portugal Russia Turkey Greece Brazil El Salvador Haiti Faroe Islands Iraq Iran Zimbabwe Afghanistan South Sudan Vietnam Eritrea Maldives Lebanon Cuba Belize Barbados Nicaragua Habsburg Empire Finland Luxembourg Belgium Tanzania Poland Sweden Philippines Switzerland Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Laos Cambodia Suriname Lesotho Württemberg Montenegro Georgia Kazakhstan Malta San Marino Norway Somalia Sierra Leone Senegal Ireland Hungary Brunei Sudan Mauritania Mauritius Malawi Iceland Pakistan Belarus Mozambique Morocco Ecuador Dominican Republic Azerbaijan Bosnia and Herzegovina Croatia Greenland Albania Republic of Macedonia Cyprus Liechtenstein Bangladesh Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Namibia Estonia Burkina Faso Burundi Benin Botswana Chile Ethiopia Kenya Ghana Trinidad and Tobago Bolivia Ukraine Czech Republic Latvia Republic of Moldova Slovakia Slovenia Romania Bulgaria Mali Bhutan Angola Guinea-Bissau Guinea Gambia Malaysia Cameroon Côte d'Ivoire Republic of the Congo Comoros Kingdom of Galicia–Volhynia Vanuatu Myanmar East Timor Turkmenistan Egypt Uruguay Syria United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Kyrgyzstan Liberia Libya Cape Verde Togo Tuvalu Quebec Tajikistan Thailand Zambia
159
[[{'concept': 'work of art'}, {'concept': 'television program'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:country_of_origin ?y } UNION { ?x property:country_of_origin ?y } } . ?z rdf:type ontology:work_of_art . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:television_program }
[]