Simple Question (Direct)
Simple Question
Q2344961
P1412
Q34770
USER
Which language is spoken by Stephen Marglin ?
(Q2344961,P1412,c(Q34770))
action filter_type
action find
entity Q2344961
relation P1412
type Q34770
['Q2344961', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?n WHERE { resource:Q2344961 property:P1412 ?n . ?n rdf:type ontology:Q34770 }
Stephen Marglin
action filter_type
action find
entity Stephen Marglin
relation languages spoken, written or signed
type language
['Stephen Marglin', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?n WHERE { resource:Stephen_Marglin property:languages_spoken,_written_or_signed ?n . ?n rdf:type ontology:language }
[]
language
Q1860
SYSTEM
English
Q1860
(Q2344961,P1412,c(Q34770))
action filter_type
action find
entity Q2344961
relation P1412
type Q34770
It [ANSWER] is spoken by Stephen Marglin
['Q2344961', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?n WHERE { resource:Q2344961 property:P1412 ?n . ?n rdf:type ontology:Q34770 }
English
It English is spoken by Stephen Marglin
English
action filter_type
action find
entity Stephen Marglin
relation languages spoken, written or signed
type language
['Stephen Marglin', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?n WHERE { resource:Stephen_Marglin property:languages_spoken,_written_or_signed ?n . ?n rdf:type ontology:language }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2344961
P69
Q163740
USER
Which nonprofit organization is the alma mater of Stephen Marglin ?
(Q2344961,P69,c(Q163740))
action filter_type
action find
entity Q2344961
relation P69
type Q163740
['Q2344961', 'P69', {'concept': 'Q163740'}]
SELECT DISTINCT ?w WHERE { resource:Q2344961 property:P69 ?w . ?w rdf:type ontology:Q163740 }
Stephen Marglin
action filter_type
action find
entity Stephen Marglin
relation educated at
type nonprofit organization
['Stephen Marglin', 'educated at', {'concept': 'nonprofit organization'}]
SELECT DISTINCT ?w WHERE { resource:Stephen_Marglin property:educated_at ?w . ?w rdf:type ontology:nonprofit_organization }
[]
nonprofit organization
Q13371
SYSTEM
Harvard University
Q13371
(Q2344961,P69,c(Q163740))
action filter_type
action find
entity Q2344961
relation P69
type Q163740
In [ANSWER] is the alma mater of Stephen Marglin
['Q2344961', 'P69', {'concept': 'Q163740'}]
SELECT DISTINCT ?w WHERE { resource:Q2344961 property:P69 ?w . ?w rdf:type ontology:Q163740 }
Harvard University
In Harvard University is the alma mater of Stephen Marglin
Harvard University
action filter_type
action find
entity Stephen Marglin
relation educated at
type nonprofit organization
['Stephen Marglin', 'educated at', {'concept': 'nonprofit organization'}]
SELECT DISTINCT ?w WHERE { resource:Stephen_Marglin property:educated_at ?w . ?w rdf:type ontology:nonprofit_organization }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q5560618
Q163740
USER
And how about Gil Student?
(Q5560618,P69,c(Q163740))
action filter_type
action find
entity Q5560618
relation P69
type Q163740
['Q5560618', 'P69', {'concept': 'Q163740'}]
SELECT DISTINCT ?z WHERE { resource:Q5560618 property:P69 ?z . ?z rdf:type ontology:Q163740 }
Gil Student
action filter_type
action find
entity Gil Student
relation educated at
type nonprofit organization
['Gil Student', 'educated at', {'concept': 'nonprofit organization'}]
SELECT DISTINCT ?z WHERE { resource:Gil_Student property:educated_at ?z . ?z rdf:type ontology:nonprofit_organization }
[]
nonprofit organization
Q1048851
SYSTEM
Yeshiva University
Q1048851
(Q5560618,P69,c(Q163740))
action filter_type
action find
entity Q5560618
relation P69
type Q163740
[ANSWER]
['Q5560618', 'P69', {'concept': 'Q163740'}]
SELECT DISTINCT ?z WHERE { resource:Q5560618 property:P69 ?z . ?z rdf:type ontology:Q163740 }
Yeshiva University
Yeshiva University
action filter_type
action find
entity Gil Student
relation educated at
type nonprofit organization
['Gil Student', 'educated at', {'concept': 'nonprofit organization'}]
SELECT DISTINCT ?z WHERE { resource:Gil_Student property:educated_at ?z . ?z rdf:type ontology:nonprofit_organization }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q73034 Q2344961
P27
Q15617994
USER
Which administrative territories are the countries of citizenship of Stephen Marglin and Paul Felix Schmidt ?
AND((Q2344961,P27,c(Q15617994)), (Q73034,P27,c(Q15617994)))
action filter_type
action intersection
action find
entity Q2344961
relation P27
action find
entity Q73034
relation P27
type Q15617994
{'AND': [['Q2344961', 'P27', {'concept': 'Q15617994'}], ['Q73034', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?b WHERE { resource:Q2344961 property:P27 ?b . resource:Q73034 property:P27 ?b . ?b rdf:type ontology:Q15617994 }
Paul Felix Schmidt Stephen Marglin
action filter_type
action intersection
action find
entity Stephen Marglin
relation country of citizenship
action find
entity Paul Felix Schmidt
relation country of citizenship
type designation for an administrative territorial entity
{'AND': [['Stephen Marglin', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Paul Felix Schmidt', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?b WHERE { resource:Stephen_Marglin property:country_of_citizenship ?b . resource:Paul_Felix_Schmidt property:country_of_citizenship ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
AND((Q2344961,P27,c(Q15617994)), (Q73034,P27,c(Q15617994)))
action filter_type
action intersection
action find
entity Q2344961
relation P27
action find
entity Q73034
relation P27
type Q15617994
[ANSWER] is the countries of citizenship of Stephen Marglin and Paul Felix Schmidt
{'AND': [['Q2344961', 'P27', {'concept': 'Q15617994'}], ['Q73034', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?b WHERE { resource:Q2344961 property:P27 ?b . resource:Q73034 property:P27 ?b . ?b rdf:type ontology:Q15617994 }
United States of America
United States of America is the countries of citizenship of Stephen Marglin and Paul Felix Schmidt
United States of America
action filter_type
action intersection
action find
entity Stephen Marglin
relation country of citizenship
action find
entity Paul Felix Schmidt
relation country of citizenship
type designation for an administrative territorial entity
{'AND': [['Stephen Marglin', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Paul Felix Schmidt', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?b WHERE { resource:Stephen_Marglin property:country_of_citizenship ?b . resource:Paul_Felix_Schmidt property:country_of_citizenship ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q5709621 Q2344961
P27
Q15617994
USER
Which administrative territories are Stephen Marglin or Helmut Gutiérrez an inhabitant of ?
OR((Q2344961,P27,c(Q15617994)), (Q5709621,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q2344961
relation P27
action find
entity Q5709621
relation P27
type Q15617994
{'OR': [['Q2344961', 'P27', {'concept': 'Q15617994'}], ['Q5709621', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?o WHERE { { VALUES ( ?k ) { ( resource:Q2344961 ) ( resource:Q5709621 ) } . ?k property:P27 ?o } . ?o rdf:type ontology:Q15617994 }
Helmut Gutiérrez Stephen Marglin
action filter_type
action union
action find
entity Stephen Marglin
relation country of citizenship
action find
entity Helmut Gutiérrez
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Stephen Marglin', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Helmut Gutiérrez', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?o WHERE { { VALUES ( ?k ) { ( resource:Stephen_Marglin ) ( resource:Helmut_Gutiérrez ) } . ?k property:country_of_citizenship ?o } . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30 Q750
SYSTEM
United States of America, Bolivia
Q30 Q750
OR((Q2344961,P27,c(Q15617994)), (Q5709621,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q2344961
relation P27
action find
entity Q5709621
relation P27
type Q15617994
[ANSWERS] are Stephen Marglin or Helmut Gutiérrez an inhabitant of
{'OR': [['Q2344961', 'P27', {'concept': 'Q15617994'}], ['Q5709621', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?o WHERE { { VALUES ( ?k ) { ( resource:Q2344961 ) ( resource:Q5709621 ) } . ?k property:P27 ?o } . ?o rdf:type ontology:Q15617994 }
United States of America Bolivia
United States of America and Bolivia are Stephen Marglin or Helmut Gutiérrez an inhabitant of
United States of America Bolivia
action filter_type
action union
action find
entity Stephen Marglin
relation country of citizenship
action find
entity Helmut Gutiérrez
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Stephen Marglin', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Helmut Gutiérrez', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?o WHERE { { VALUES ( ?k ) { ( resource:Stephen_Marglin ) ( resource:Helmut_Gutiérrez ) } . ?k property:country_of_citizenship ?o } . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q1048835
USER
How many political territories have ambassadorial relations with atmost 85 administrative territories ?
(c(Q1048835),P530,c(Q15617994))
action count
action atmost
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 85
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?s ) WHERE { FILTER ( ?t <= 85 ) . { SELECT DISTINCT ?n ( COUNT ( ?a ) AS ?t ) WHERE { ?n property:P530 ?a . ?n rdf:type ontology:Q1048835 . ?a rdf:type ontology:Q15617994 } GROUP BY ?n } }
action count
action atmost
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 85
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?s ) WHERE { FILTER ( ?t <= 85 ) . { SELECT DISTINCT ?n ( COUNT ( ?a ) AS ?t ) WHERE { ?n property:diplomatic_relation ?a . ?n rdf:type ontology:political_territorial_entity . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?n } }
[]
designation for an administrative territorial entity political territorial entity
SYSTEM
11
Q1000 Q40 Q781 Q778 Q769 Q685 Q35 Q691 Q16 Q664 Q766
(c(Q1048835),P530,c(Q15617994))
action count
action atmost
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 85
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?s ) WHERE { FILTER ( ?t <= 85 ) . { SELECT DISTINCT ?n ( COUNT ( ?a ) AS ?t ) WHERE { ?n property:P530 ?a . ?n rdf:type ontology:Q1048835 . ?a rdf:type ontology:Q15617994 } GROUP BY ?n } }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea Canada New Zealand Jamaica
11
action count
action atmost
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 85
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?s ) WHERE { FILTER ( ?t <= 85 ) . { SELECT DISTINCT ?n ( COUNT ( ?a ) AS ?t ) WHERE { ?n property:diplomatic_relation ?a . ?n rdf:type ontology:political_territorial_entity . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?n } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q30
P38
Q8142
USER
What is the currency of United States of America ?
(Q30,P38,c(Q8142))
action filter_type
action find
entity Q30
relation P38
type Q8142
['Q30', 'P38', {'concept': 'Q8142'}]
SELECT DISTINCT ?s WHERE { resource:Q30 property:P38 ?s . ?s rdf:type ontology:Q8142 }
United States of America
action filter_type
action find
entity United States of America
relation currency
type currency
['United States of America', 'currency', {'concept': 'currency'}]
SELECT DISTINCT ?s WHERE { resource:United_States_of_America property:currency ?s . ?s rdf:type ontology:currency }
[]
currency
Q4917
SYSTEM
United States dollar
Q4917
(Q30,P38,c(Q8142))
action filter_type
action find
entity Q30
relation P38
type Q8142
The currency of United States of America is the [ANSWER]
['Q30', 'P38', {'concept': 'Q8142'}]
SELECT DISTINCT ?s WHERE { resource:Q30 property:P38 ?s . ?s rdf:type ontology:Q8142 }
United States dollar
The currency of United States of America is the United States dollar
United States dollar
action filter_type
action find
entity United States of America
relation currency
type currency
['United States of America', 'currency', {'concept': 'currency'}]
SELECT DISTINCT ?s WHERE { resource:United_States_of_America property:currency ?s . ?s rdf:type ontology:currency }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q809806
Q8142
USER
And how about Bashkir Autonomous Soviet Socialist Republic?
(Q809806,P38,c(Q8142))
action filter_type
action find
entity Q809806
relation P38
type Q8142
['Q809806', 'P38', {'concept': 'Q8142'}]
SELECT DISTINCT ?b WHERE { resource:Q809806 property:P38 ?b . ?b rdf:type ontology:Q8142 }
Bashkir Autonomous Soviet Socialist Republic
action filter_type
action find
entity Bashkir Autonomous Soviet Socialist Republic
relation currency
type currency
['Bashkir Autonomous Soviet Socialist Republic', 'currency', {'concept': 'currency'}]
SELECT DISTINCT ?b WHERE { resource:Bashkir_Autonomous_Soviet_Socialist_Republic property:currency ?b . ?b rdf:type ontology:currency }
[]
currency
Q615640
SYSTEM
Soviet ruble
Q615640
(Q809806,P38,c(Q8142))
action filter_type
action find
entity Q809806
relation P38
type Q8142
[ANSWER]
['Q809806', 'P38', {'concept': 'Q8142'}]
SELECT DISTINCT ?b WHERE { resource:Q809806 property:P38 ?b . ?b rdf:type ontology:Q8142 }
Soviet ruble
Soviet ruble
action filter_type
action find
entity Bashkir Autonomous Soviet Socialist Republic
relation currency
type currency
['Bashkir Autonomous Soviet Socialist Republic', 'currency', {'concept': 'currency'}]
SELECT DISTINCT ?b WHERE { resource:Bashkir_Autonomous_Soviet_Socialist_Republic property:currency ?b . ?b rdf:type ontology:currency }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q30
P6
Q502895
USER
How many people are United States of America the head of goverment of ?
(Q30,P6,c(Q502895))
action count
action filter_type
action find
entity Q30
relation P6
type Q502895
['Q30', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?n ) WHERE { resource:Q30 property:P6 ?c . ?c rdf:type ontology:Q502895 }
United States of America
action count
action filter_type
action find
entity United States of America
relation head of government
type common name
['United States of America', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?n ) WHERE { resource:United_States_of_America property:head_of_government ?c . ?c rdf:type ontology:common_name }
[]
common name
SYSTEM
44
Q35171 Q11815 Q11816 Q11817 Q35498 Q11812 Q12306 Q91 Q12325 Q33866 Q35648 Q9588 Q9582 Q11869 Q207 Q11813 Q35236 Q23685 Q9696 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
(Q30,P6,c(Q502895))
action count
action filter_type
action find
entity Q30
relation P6
type Q502895
[ANSWER]
['Q30', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?n ) WHERE { resource:Q30 property:P6 ?c . ?c rdf:type ontology:Q502895 }
Grover Cleveland James Monroe John Quincy Adams Andrew Jackson Chester A. Arthur Thomas Jefferson Millard Fillmore Abraham Lincoln James Buchanan Theodore Roosevelt William Howard Taft Richard Nixon Gerald Ford William Henry Harrison George W. Bush James Madison Herbert Hoover Jimmy Carter John F. Kennedy 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
44
action count
action filter_type
action find
entity United States of America
relation head of government
type common name
['United States of America', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?n ) WHERE { resource:United_States_of_America property:head_of_government ?c . ?c rdf:type ontology:common_name }
[]