Simple Question (Direct)
Simple Question
Q16185335
P39
Q12737077
USER
What was the position for which Marc Feinstein was appointed ?
(Q16185335,P39,c(Q12737077))
action filter_type
action find
entity Q16185335
relation P39
type Q12737077
['Q16185335', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?o WHERE { resource:Q16185335 property:P39 ?o . ?o rdf:type ontology:Q12737077 }
Marc Feinstein
action filter_type
action find
entity Marc Feinstein
relation position held
type occupation
['Marc Feinstein', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?o WHERE { resource:Marc_Feinstein property:position_held ?o . ?o rdf:type ontology:occupation }
[]
occupation
Q19360976
SYSTEM
member of the South Dakota House of Representatives
Q19360976
(Q16185335,P39,c(Q12737077))
action filter_type
action find
entity Q16185335
relation P39
type Q12737077
The [ANSWER]
['Q16185335', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?o WHERE { resource:Q16185335 property:P39 ?o . ?o rdf:type ontology:Q12737077 }
member of the South Dakota House of Representatives
The member of the South Dakota House of Representatives
member of the South Dakota House of Representatives
action filter_type
action find
entity Marc Feinstein
relation position held
type occupation
['Marc Feinstein', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?o WHERE { resource:Marc_Feinstein property:position_held ?o . ?o rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q19360976
P1001
Q852446
USER
Which US administrative territory comes under the supervision of that occupation ?
(Q19360976,P1001,c(Q852446))
action filter_type
action find
entity Q19360976
relation P1001
type Q852446
['Q19360976', 'P1001', {'concept': 'Q852446'}]
SELECT DISTINCT ?w WHERE { resource:Q19360976 property:P1001 ?w . ?w rdf:type ontology:Q852446 }
member of the South Dakota House of Representatives
action filter_type
action find
entity member of the South Dakota House of Representatives
relation applies to jurisdiction
type administrative territorial entity of the United States
['member of the South Dakota House of Representatives', 'applies to jurisdiction', {'concept': 'administrative territorial entity of the United States'}]
SELECT DISTINCT ?w WHERE { resource:member_of_the_South_Dakota_House_of_Representatives property:applies_to_jurisdiction ?w . ?w rdf:type ontology:administrative_territorial_entity_of_the_United_States }
[]
administrative territorial entity of the United States
Q1211
SYSTEM
South Dakota
Q1211
(Q19360976,P1001,c(Q852446))
action filter_type
action find
entity Q19360976
relation P1001
type Q852446
[ANSWER] comes under the supervision of that occupation
['Q19360976', 'P1001', {'concept': 'Q852446'}]
SELECT DISTINCT ?w WHERE { resource:Q19360976 property:P1001 ?w . ?w rdf:type ontology:Q852446 }
South Dakota
South Dakota comes under the supervision of that occupation
South Dakota
action filter_type
action find
entity member of the South Dakota House of Representatives
relation applies to jurisdiction
type administrative territorial entity of the United States
['member of the South Dakota House of Representatives', 'applies to jurisdiction', {'concept': 'administrative territorial entity of the United States'}]
SELECT DISTINCT ?w WHERE { resource:member_of_the_South_Dakota_House_of_Representatives property:applies_to_jurisdiction ?w . ?w rdf:type ontology:administrative_territorial_entity_of_the_United_States }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q19360976
P463
Q375928
USER
Which lower house was member of the South Dakota House of Representatives a member of ?
(Q19360976,P463,c(Q375928))
action filter_type
action find
entity Q19360976
relation P463
type Q375928
['Q19360976', 'P463', {'concept': 'Q375928'}]
SELECT DISTINCT ?y WHERE { resource:Q19360976 property:P463 ?y . ?y rdf:type ontology:Q375928 }
member of the South Dakota House of Representatives
action filter_type
action find
entity member of the South Dakota House of Representatives
relation member of
type lower house
['member of the South Dakota House of Representatives', 'member of', {'concept': 'lower house'}]
SELECT DISTINCT ?y WHERE { resource:member_of_the_South_Dakota_House_of_Representatives property:member_of ?y . ?y rdf:type ontology:lower_house }
[]
lower house
Q526732
SYSTEM
South Dakota House of Representatives
Q526732
(Q19360976,P463,c(Q375928))
action filter_type
action find
entity Q19360976
relation P463
type Q375928
The [ANSWER] was member of the [ANSWER] a member of
['Q19360976', 'P463', {'concept': 'Q375928'}]
SELECT DISTINCT ?y WHERE { resource:Q19360976 property:P463 ?y . ?y rdf:type ontology:Q375928 }
South Dakota House of Representatives
The South Dakota House of Representatives was member of the South Dakota House of Representatives a member of
South Dakota House of Representatives
action filter_type
action find
entity member of the South Dakota House of Representatives
relation member of
type lower house
['member of the South Dakota House of Representatives', 'member of', {'concept': 'lower house'}]
SELECT DISTINCT ?y WHERE { resource:member_of_the_South_Dakota_House_of_Representatives property:member_of ?y . ?y rdf:type ontology:lower_house }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q19360976
P17
Q15617994
USER
Which administrative territory does that occupation belong to ?
(Q526732,P17,c(Q15617994))
action filter_type
action find
entity Q19360976
relation P17
type Q15617994
['Q526732', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?o WHERE { resource:Q19360976 property:P17 ?o . ?o rdf:type ontology:Q15617994 }
member of the South Dakota House of Representatives
action filter_type
action find
entity member of the South Dakota House of Representatives
relation country
type designation for an administrative territorial entity
['South Dakota House of Representatives', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { resource:member_of_the_South_Dakota_House_of_Representatives property:country ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
(Q526732,P17,c(Q15617994))
action filter_type
action find
entity Q19360976
relation P17
type Q15617994
That occupation belongs to the [ANSWER]
['Q526732', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?o WHERE { resource:Q19360976 property:P17 ?o . ?o rdf:type ontology:Q15617994 }
United States of America
That occupation belongs to the United States of America
United States of America
action filter_type
action find
entity member of the South Dakota House of Representatives
relation country
type designation for an administrative territorial entity
['South Dakota House of Representatives', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { resource:member_of_the_South_Dakota_House_of_Representatives property:country ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q1048835 Q15617994
USER
Which political territories have a diplomatic relationship with max number of administrative territories ?
(c(Q15617994),P530,Q766)
action argmax
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
[{'concept': 'Q15617994'}, 'P530', 'Q766']
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( MAX ( ?p ) AS ?t ) { SELECT DISTINCT ?j ( COUNT ( ?x ) AS ?p ) WHERE { ?j rdf:type ontology:Q1048835 . ?x rdf:type ontology:Q15617994 . ?j property:P530 ?x } GROUP BY ?j } } . { SELECT DISTINCT ?s ( COUNT ( ?d ) AS ?r ) WHERE { ?s property:P530 ?d . ?s rdf:type ontology:Q1048835 . ?d rdf:type ontology:Q15617994 } GROUP BY ?s } . FILTER ( ?r = ?t ) }
action argmax
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Jamaica']
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( MAX ( ?p ) AS ?t ) { SELECT DISTINCT ?j ( COUNT ( ?x ) AS ?p ) WHERE { ?j rdf:type ontology:political_territorial_entity . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j property:diplomatic_relation ?x } GROUP BY ?j } } . { SELECT DISTINCT ?s ( COUNT ( ?d ) AS ?r ) WHERE { ?s property:diplomatic_relation ?d . ?s rdf:type ontology:political_territorial_entity . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?s } . FILTER ( ?r = ?t ) }
[]
political territorial entity designation for an administrative territorial entity
Q183
SYSTEM
Germany
Q183
(c(Q15617994),P530,Q766)
action argmax
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
[ANSWER] have a diplomatic relationship with max number of administrative territories
[{'concept': 'Q15617994'}, 'P530', 'Q766']
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( MAX ( ?p ) AS ?t ) { SELECT DISTINCT ?j ( COUNT ( ?x ) AS ?p ) WHERE { ?j rdf:type ontology:Q1048835 . ?x rdf:type ontology:Q15617994 . ?j property:P530 ?x } GROUP BY ?j } } . { SELECT DISTINCT ?s ( COUNT ( ?d ) AS ?r ) WHERE { ?s property:P530 ?d . ?s rdf:type ontology:Q1048835 . ?d rdf:type ontology:Q15617994 } GROUP BY ?s } . FILTER ( ?r = ?t ) }
Germany
Germany have a diplomatic relationship with max number of administrative territories
Germany
action argmax
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Jamaica']
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( MAX ( ?p ) AS ?t ) { SELECT DISTINCT ?j ( COUNT ( ?x ) AS ?p ) WHERE { ?j rdf:type ontology:political_territorial_entity . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j property:diplomatic_relation ?x } GROUP BY ?j } } . { SELECT DISTINCT ?s ( COUNT ( ?d ) AS ?r ) WHERE { ?s property:diplomatic_relation ?d . ?s rdf:type ontology:political_territorial_entity . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?s } . FILTER ( ?r = ?t ) }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q183 Q55117 Q869
P530
Q15617994
USER
Does Germany have tactful political relations with Solofra and Thailand ?
(Q183,P530,Q55117) (Q183,P530,Q869)
action is_in
entity Q183
action intersection
action find_reverse
entity Q55117
relation P530
action find_reverse
entity Q869
relation P530
['Q183', 'P530', 'Q55117'] ['Q183', 'P530', 'Q869']
ASK WHERE { resource:Q183 property:P530 resource:Q55117 . resource:Q183 property:P530 resource:Q869 }
Germany Solofra Thailand
action is_in
entity Germany
action intersection
action find_reverse
entity Solofra
relation diplomatic relation
action find_reverse
entity Thailand
relation diplomatic relation
['Germany', 'diplomatic relation', 'Solofra'] ['Germany', 'diplomatic relation', 'Thailand']
ASK WHERE { resource:Germany property:diplomatic_relation resource:Solofra . resource:Germany property:diplomatic_relation resource:Thailand }
[]
designation for an administrative territorial entity
SYSTEM
NO and YES respectively
(Q183,P530,Q55117) (Q183,P530,Q869)
action is_in
entity Q183
action intersection
action find_reverse
entity Q55117
relation P530
action find_reverse
entity Q869
relation P530
[ANSWER]
['Q183', 'P530', 'Q55117'] ['Q183', 'P530', 'Q869']
ASK WHERE { resource:Q183 property:P530 resource:Q55117 . resource:Q183 property:P530 resource:Q869 }
NO and YES respectively
action is_in
entity Germany
action intersection
action find_reverse
entity Solofra
relation diplomatic relation
action find_reverse
entity Thailand
relation diplomatic relation
['Germany', 'diplomatic relation', 'Solofra'] ['Germany', 'diplomatic relation', 'Thailand']
ASK WHERE { resource:Germany property:diplomatic_relation resource:Solofra . resource:Germany property:diplomatic_relation resource:Thailand }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q60
P6
Q502895
USER
What people are New York City the head of goverment of ?
(Q60,P6,c(Q502895))
action filter_type
action find
entity Q60
relation P6
type Q502895
['Q60', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?f WHERE { resource:Q60 property:P6 ?f . ?f rdf:type ontology:Q502895 }
New York City
action filter_type
action find
entity New York City
relation head of government
type common name
['New York City', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?f WHERE { resource:New_York_City property:head_of_government ?f . ?f rdf:type ontology:common_name }
[]
common name
Q607 Q467122 Q212648
SYSTEM
Michael Bloomberg, Ed Koch, Rudy Giuliani
Q204135 Q467133 Q312502 Q2274772 Q441554 Q2156376 Q6287566 Q467122 Q939458 Q607 Q6233903 Q329910 Q212648 Q4121154 Q4911497 Q666931 Q1701296 Q2544704 Q3182321 Q439156 Q5536568
(Q60,P6,c(Q502895))
action filter_type
action find
entity Q60
relation P6
type Q502895
[ANSWERS]
['Q60', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?f WHERE { resource:Q60 property:P6 ?f . ?f rdf:type ontology:Q502895 }
Jimmy Walker David Dinkins Fiorello H. La Guardia Seth Low William O'Dwyer Robert Anderson Van Wyck Joseph V. McKee Ed Koch Vincent R. Impellitteri Michael Bloomberg John Francis Hylan Abraham Beame Rudy Giuliani Ardolph L. Kline Bill de Blasio John Lindsay John P. O'Brien William Jay Gaynor John Purroy Mitchel Robert F. Wagner George B. McClellan, Jr.
What people are New York City the head of goverment of
Michael Bloomberg Ed Koch Rudy Giuliani
action filter_type
action find
entity New York City
relation head of government
type common name
['New York City', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?f WHERE { resource:New_York_City property:head_of_government ?f . ?f rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q183
P30
Q2221906
USER
Which geographic location is Germany a part of ?
(Q183,P30,c(Q2221906))
action filter_type
action find
entity Q183
relation P30
type Q2221906
['Q183', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?j WHERE { resource:Q183 property:P30 ?j . ?j rdf:type ontology:Q2221906 }
Germany
action filter_type
action find
entity Germany
relation continent
type geographic location
['Germany', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?j WHERE { resource:Germany property:continent ?j . ?j rdf:type ontology:geographic_location }
[]
geographic location
Q46
SYSTEM
Europe
Q46
(Q183,P30,c(Q2221906))
action filter_type
action find
entity Q183
relation P30
type Q2221906
Which geographic location is Germany a part of
['Q183', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?j WHERE { resource:Q183 property:P30 ?j . ?j rdf:type ontology:Q2221906 }
Europe
Which geographic location is Germany a part of
Europe
action filter_type
action find
entity Germany
relation continent
type geographic location
['Germany', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?j WHERE { resource:Germany property:continent ?j . ?j rdf:type ontology:geographic_location }
[]