Simple Question (Direct)
Simple Question
Q61719
P937
Q56061
USER
Which administrative territory is the work location of Otto Wels ?
(Q61719,P937,c(Q56061))
action filter_type
action find
entity Q61719
relation P937
type Q56061
['Q61719', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?n WHERE { resource:Q61719 property:P937 ?n . ?n rdf:type ontology:Q56061 }
Otto Wels
action filter_type
action find
entity Otto Wels
relation work location
type administrative territorial entity
['Otto Wels', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { resource:Otto_Wels property:work_location ?n . ?n rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q64
SYSTEM
Berlin
Q64
(Q61719,P937,c(Q56061))
action filter_type
action find
entity Q61719
relation P937
type Q56061
[ANSWER] is the work location of Otto Wels
['Q61719', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?n WHERE { resource:Q61719 property:P937 ?n . ?n rdf:type ontology:Q56061 }
Berlin
Berlin is the work location of Otto Wels
Berlin
action filter_type
action find
entity Otto Wels
relation work location
type administrative territorial entity
['Otto Wels', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { resource:Otto_Wels property:work_location ?n . ?n rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q61719
P20
Q56061
USER
Where did that person die ?
(Q64,P20,c(Q56061))
action filter_type
action find
entity Q61719
relation P20
type Q56061
['Q64', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?e WHERE { resource:Q61719 property:P20 ?e . ?e rdf:type ontology:Q56061 }
Otto Wels
action filter_type
action find
entity Otto Wels
relation place of death
type administrative territorial entity
['Berlin', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { resource:Otto_Wels property:place_of_death ?e . ?e rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q90
SYSTEM
Paris
Q90
(Q64,P20,c(Q56061))
action filter_type
action find
entity Q61719
relation P20
type Q56061
That person died in [ANSWER]
['Q64', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?e WHERE { resource:Q61719 property:P20 ?e . ?e rdf:type ontology:Q56061 }
Paris
That person died in Paris
Paris
action filter_type
action find
entity Otto Wels
relation place of death
type administrative territorial entity
['Berlin', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { resource:Otto_Wels property:place_of_death ?e . ?e rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q61719
P39
Q12737077
USER
Which occupations were the positions for which Otto Wels were appointed ?
(Q61719,P39,c(Q12737077))
action filter_type
action find
entity Q61719
relation P39
type Q12737077
['Q61719', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?t WHERE { resource:Q61719 property:P39 ?t . ?t rdf:type ontology:Q12737077 }
Otto Wels
action filter_type
action find
entity Otto Wels
relation position held
type occupation
['Otto Wels', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?t WHERE { resource:Otto_Wels property:position_held ?t . ?t rdf:type ontology:occupation }
[]
occupation
Q17850767 Q17854096
SYSTEM
member of the Reichstag of the Weimar Republic, member of the Reichstag of the German Empire
Q17850767 Q17854096
(Q61719,P39,c(Q12737077))
action filter_type
action find
entity Q61719
relation P39
type Q12737077
[ANSWERS] were the positions for which Otto Wels were appointed
['Q61719', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?t WHERE { resource:Q61719 property:P39 ?t . ?t rdf:type ontology:Q12737077 }
member of the Reichstag of the Weimar Republic member of the Reichstag of the German Empire
Member of the Reichstag of the Weimar Republic and member of the Reichstag of the German Empire were the positions for which Otto Wels were appointed
member of the Reichstag of the Weimar Republic member of the Reichstag of the German Empire
action filter_type
action find
entity Otto Wels
relation position held
type occupation
['Otto Wels', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?t WHERE { resource:Otto_Wels property:position_held ?t . ?t rdf:type ontology:occupation }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q7184570
Q12737077
USER
And what about Philip Willkie?
(Q7184570,P39,c(Q12737077))
action filter_type
action find
entity Q7184570
relation P39
type Q12737077
['Q7184570', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?x WHERE { resource:Q7184570 property:P39 ?x . ?x rdf:type ontology:Q12737077 }
Philip Willkie
action filter_type
action find
entity Philip Willkie
relation position held
type occupation
['Philip Willkie', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?x WHERE { resource:Philip_Willkie property:position_held ?x . ?x rdf:type ontology:occupation }
[]
occupation
Q18190880
SYSTEM
member of the Indiana House of Representatives
Q18190880
(Q7184570,P39,c(Q12737077))
action filter_type
action find
entity Q7184570
relation P39
type Q12737077
[ANSWER]
['Q7184570', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?x WHERE { resource:Q7184570 property:P39 ?x . ?x rdf:type ontology:Q12737077 }
member of the Indiana House of Representatives
member of the Indiana House of Representatives
action filter_type
action find
entity Philip Willkie
relation position held
type occupation
['Philip Willkie', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?x WHERE { resource:Philip_Willkie property:position_held ?x . ?x rdf:type ontology:occupation }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q18190880 Q2611974 Q30
P17
Q15617994
USER
Is that occupation present in Belgern-Schildau and United States of America ?
(Q18190880,P17,Q2611974) (Q18190880,P17,Q30)
action is_in
entity Q18190880
action intersection
action find_reverse
entity Q2611974
relation P17
action find_reverse
entity Q30
relation P17
['Q18190880', 'P17', 'Q2611974'] ['Q18190880', 'P17', 'Q30']
ASK WHERE { resource:Q18190880 property:P17 resource:Q2611974 . resource:Q18190880 property:P17 resource:Q30 }
member of the Indiana House of Representatives Belgern-Schildau United States of America
action is_in
entity member of the Indiana House of Representatives
action intersection
action find_reverse
entity Belgern-Schildau
relation country
action find_reverse
entity United States of America
relation country
['member of the Indiana House of Representatives', 'country', 'Belgern-Schildau'] ['member of the Indiana House of Representatives', 'country', 'United States of America']
ASK WHERE { resource:member_of_the_Indiana_House_of_Representatives property:country resource:Belgern-Schildau . resource:member_of_the_Indiana_House_of_Representatives property:country resource:United_States_of_America }
[]
designation for an administrative territorial entity
SYSTEM
NO and YES respectively
(Q18190880,P17,Q2611974) (Q18190880,P17,Q30)
action is_in
entity Q18190880
action intersection
action find_reverse
entity Q2611974
relation P17
action find_reverse
entity Q30
relation P17
[ANSWER]
['Q18190880', 'P17', 'Q2611974'] ['Q18190880', 'P17', 'Q30']
ASK WHERE { resource:Q18190880 property:P17 resource:Q2611974 . resource:Q18190880 property:P17 resource:Q30 }
NO and YES respectively
action is_in
entity member of the Indiana House of Representatives
action intersection
action find_reverse
entity Belgern-Schildau
relation country
action find_reverse
entity United States of America
relation country
['member of the Indiana House of Representatives', 'country', 'Belgern-Schildau'] ['member of the Indiana House of Representatives', 'country', 'United States of America']
ASK WHERE { resource:member_of_the_Indiana_House_of_Representatives property:country resource:Belgern-Schildau . resource:member_of_the_Indiana_House_of_Representatives property:country resource:United_States_of_America }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q17850767 Q637829
P361
Q1752346
USER
Is member of the Reichstag of the Weimar Republic a portion of Reichstag ?
(Q17850767,P361,Q637829)
action is_in
entity Q637829
action find
entity Q17850767
relation P361
['Q17850767', 'P361', 'Q637829']
ASK WHERE { resource:Q17850767 property:P361 resource:Q637829 }
member of the Reichstag of the Weimar Republic Reichstag
action is_in
entity Reichstag
action find
entity member of the Reichstag of the Weimar Republic
relation part of
['member of the Reichstag of the Weimar Republic', 'part of', 'Reichstag']
ASK WHERE { resource:member_of_the_Reichstag_of_the_Weimar_Republic property:part_of resource:Reichstag }
[]
assembly
SYSTEM
YES
(Q17850767,P361,Q637829)
action is_in
entity Q637829
action find
entity Q17850767
relation P361
[ANSWER]
['Q17850767', 'P361', 'Q637829']
ASK WHERE { resource:Q17850767 property:P361 resource:Q637829 }
Yes
action is_in
entity Reichstag
action find
entity member of the Reichstag of the Weimar Republic
relation part of
['member of the Reichstag of the Weimar Republic', 'part of', 'Reichstag']
ASK WHERE { resource:member_of_the_Reichstag_of_the_Weimar_Republic property:part_of resource:Reichstag }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q64 Q16490259 Q213561
P6
Q502895
USER
Does Berlin have André Cavalcanti d'Albuquerque and Ernst Reuter as its administrative leader ?
(Q64,P6,Q16490259) (Q64,P6,Q213561)
action is_in
entity Q64
action intersection
action find_reverse
entity Q16490259
relation P6
action find_reverse
entity Q213561
relation P6
['Q64', 'P6', 'Q16490259'] ['Q64', 'P6', 'Q213561']
ASK WHERE { resource:Q64 property:P6 resource:Q16490259 . resource:Q64 property:P6 resource:Q213561 }
Berlin André Cavalcanti d'Albuquerque Ernst Reuter
action is_in
entity Berlin
action intersection
action find_reverse
entity André Cavalcanti d'Albuquerque
relation head of government
action find_reverse
entity Ernst Reuter
relation head of government
['Berlin', 'head of government', "André Cavalcanti d'Albuquerque"] ['Berlin', 'head of government', 'Ernst Reuter']
ASK WHERE { resource:Berlin property:head_of_government resource:André_Cavalcanti_d'Albuquerque . resource:Berlin property:head_of_government resource:Ernst_Reuter }
[]
common name
SYSTEM
NO and YES respectively
(Q64,P6,Q16490259) (Q64,P6,Q213561)
action is_in
entity Q64
action intersection
action find_reverse
entity Q16490259
relation P6
action find_reverse
entity Q213561
relation P6
[ANSWER]
['Q64', 'P6', 'Q16490259'] ['Q64', 'P6', 'Q213561']
ASK WHERE { resource:Q64 property:P6 resource:Q16490259 . resource:Q64 property:P6 resource:Q213561 }
NO and YES respectively
action is_in
entity Berlin
action intersection
action find_reverse
entity André Cavalcanti d'Albuquerque
relation head of government
action find_reverse
entity Ernst Reuter
relation head of government
['Berlin', 'head of government', "André Cavalcanti d'Albuquerque"] ['Berlin', 'head of government', 'Ernst Reuter']
ASK WHERE { resource:Berlin property:head_of_government resource:André_Cavalcanti_d'Albuquerque . resource:Berlin property:head_of_government resource:Ernst_Reuter }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q18190880
P17
Q15617994
USER
How many administrative territories are member of the Indiana House of Representatives situated in ?
(Q18190880,P17,c(Q15617994))
action count
action filter_type
action find
entity Q18190880
relation P17
type Q15617994
['Q18190880', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?f ) WHERE { resource:Q18190880 property:P17 ?l . ?l rdf:type ontology:Q15617994 }
member of the Indiana House of Representatives
action count
action filter_type
action find
entity member of the Indiana House of Representatives
relation country
type designation for an administrative territorial entity
['member of the Indiana House of Representatives', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?f ) WHERE { resource:member_of_the_Indiana_House_of_Representatives property:country ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
1
Q30
(Q18190880,P17,c(Q15617994))
action count
action filter_type
action find
entity Q18190880
relation P17
type Q15617994
[ANSWER]
['Q18190880', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?f ) WHERE { resource:Q18190880 property:P17 ?l . ?l rdf:type ontology:Q15617994 }
United States of America
1
action count
action filter_type
action find
entity member of the Indiana House of Representatives
relation country
type designation for an administrative territorial entity
['member of the Indiana House of Representatives', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?f ) WHERE { resource:member_of_the_Indiana_House_of_Representatives property:country ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q90
P551
Q95074
USER
Who reside at Paris ?
(c(Q95074),P551,Q90)
action filter_type
action find_reverse
entity Q90
relation P551
type Q95074
[{'concept': 'Q95074'}, 'P551', 'Q90']
SELECT DISTINCT ?n WHERE { ?n property:P551 resource:Q90 . ?n rdf:type ontology:Q95074 }
Paris
action filter_type
action find_reverse
entity Paris
relation residence
type fictional character
[{'concept': 'fictional character'}, 'residence', 'Paris']
SELECT DISTINCT ?n WHERE { ?n property:residence resource:Paris . ?n rdf:type ontology:fictional_character }
[]
fictional character
Q661491 Q27702142 Q27702890
SYSTEM
Esméralda, Esmeralda, Phoebus
Q27702890 Q27237663 Q27710770 Q27237700 Q21562043 Q27703517 Q27243298 Q3073552 Q27242162 Q27702142 Q661491
(c(Q95074),P551,Q90)
action filter_type
action find_reverse
entity Q90
relation P551
type Q95074
[ANSWERS] reside at Paris
[{'concept': 'Q95074'}, 'P551', 'Q90']
SELECT DISTINCT ?n WHERE { ?n property:P551 resource:Q90 . ?n rdf:type ontology:Q95074 }
Phoebus Duchess Archdeacon Thomas O'Malley Antoine Doinel Sister Gudule Adelaide Bonfamille Fleur-de-Lys Roquefort Esmeralda Esméralda
Esméralda, Esmeralda and Phoebus reside at Paris
Esméralda Esmeralda Phoebus
action filter_type
action find_reverse
entity Paris
relation residence
type fictional character
[{'concept': 'fictional character'}, 'residence', 'Paris']
SELECT DISTINCT ?n WHERE { ?n property:residence resource:Paris . ?n rdf:type ontology:fictional_character }
[]
Clarification
Simple Question|Single Entity|Indirect
Q27702142
P451
Q95074
USER
Who had that one as their partner ?
(Q27702142,P451,c(Q95074))
action filter_type
action find
entity Q27702142
relation P451
type Q95074
['Q27702142', 'P451', {'concept': 'Q95074'}]
SELECT DISTINCT ?r WHERE { resource:Q27702142 property:P451 ?r . ?r rdf:type ontology:Q95074 }
Esmeralda
action filter_type
action find
entity Esmeralda
relation partner
type fictional character
['Esmeralda', 'partner', {'concept': 'fictional character'}]
SELECT DISTINCT ?r WHERE { resource:Esmeralda property:partner ?r . ?r rdf:type ontology:fictional_character }
[]
fictional character
Clarification for simple ques.
Q661491
SYSTEM
Did you mean Esméralda ?
Q661491 Q27702142 Q27702890
(Q661491,P451,c(Q95074)) (Q27702142,P451,c(Q95074)) (Q27702890,P451,c(Q95074))
[ANSWER]
['Q661491', 'P451', {'concept': 'Q95074'}] ['Q27702142', 'P451', {'concept': 'Q95074'}] ['Q27702890', 'P451', {'concept': 'Q95074'}]
SELECT DISTINCT ?r WHERE { resource:Q27702142 property:P451 ?r . ?r rdf:type ontology:Q95074 }
Esméralda Esmeralda Phoebus
Did you mean Esméralda ?
Esméralda
['Esméralda', 'partner', {'concept': 'fictional character'}] ['Esmeralda', 'partner', {'concept': 'fictional character'}] ['Phoebus', 'partner', {'concept': 'fictional character'}]
SELECT DISTINCT ?r WHERE { resource:Esmeralda property:partner ?r . ?r rdf:type ontology:fictional_character }
[]
Simple Question (Coreferenced)
USER
No, I meant Esmeralda. Could you tell me the answer for that?
(Q27702142,P451,c(Q95074))
Q27702142
['Q27702142', 'P451', {'concept': 'Q95074'}]
['Esmeralda', 'partner', {'concept': 'fictional character'}]
[]
Q27702890
SYSTEM
Phoebus
Q27702890
(Q27702142,P451,c(Q95074))
action filter_type
action find
entity Q27702142
relation P451
type Q95074
[ANSWER] had that one as their partner
['Q27702142', 'P451', {'concept': 'Q95074'}]
SELECT DISTINCT ?r WHERE { resource:Q27702142 property:P451 ?r . ?r rdf:type ontology:Q95074 }
Phoebus
Phoebus had that one as their partner
Phoebus
action filter_type
action find
entity Esmeralda
relation partner
type fictional character
['Esmeralda', 'partner', {'concept': 'fictional character'}]
SELECT DISTINCT ?r WHERE { resource:Esmeralda property:partner ?r . ?r rdf:type ontology:fictional_character }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P941
Q15707583 Q15619164 Q95074
USER
How many fictional characters had around 3 fictional taxons and abstract beings as a source of inspiration ?
(c(Q95074),P941,c(Q15707583)|c(Q15619164))
action count
action approx
action union
action find_tuple_counts
relation P941
type Q95074
type Q15707583
action find_tuple_counts
relation P941
type Q95074
type Q15619164
value 3
[{'concept': 'Q95074'}, 'P941', [{'concept': 'Q15707583'}, {'concept': 'Q15619164'}]]
SELECT DISTINCT ( COUNT ( ?d ) AS ?e ) WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?n ) ?d WHERE { VALUES ( ?b ) { ( ontology:Q15707583 ) ( ontology:Q15619164 ) } . ?v rdf:type ?b } GROUP BY ?d } . FILTER ( ?n = 3 ) }
action count
action approx
action union
action find_tuple_counts
relation inspired by
type fictional character
type fictional taxon
action find_tuple_counts
relation inspired by
type fictional character
type abstract being
value 3
[{'concept': 'fictional character'}, 'inspired by', [{'concept': 'fictional taxon'}, {'concept': 'abstract being'}]]
SELECT DISTINCT ( COUNT ( ?d ) AS ?e ) WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?n ) ?d WHERE { VALUES ( ?b ) { ( ontology:fictional_taxon ) ( ontology:abstract_being ) } . ?v rdf:type ?b } GROUP BY ?d } . FILTER ( ?n = 3 ) }
[]
fictional taxon abstract being fictional character
SYSTEM
1
Q3381115
(c(Q95074),P941,c(Q15707583)|c(Q15619164))
action count
action approx
action union
action find_tuple_counts
relation P941
type Q95074
type Q15707583
action find_tuple_counts
relation P941
type Q95074
type Q15619164
value 3
[ANSWER]
[{'concept': 'Q95074'}, 'P941', [{'concept': 'Q15707583'}, {'concept': 'Q15619164'}]]
SELECT DISTINCT ( COUNT ( ?d ) AS ?e ) WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?n ) ?d WHERE { VALUES ( ?b ) { ( ontology:Q15707583 ) ( ontology:Q15619164 ) } . ?v rdf:type ?b } GROUP BY ?d } . FILTER ( ?n = 3 ) }
Philoctetes
1
action count
action approx
action union
action find_tuple_counts
relation inspired by
type fictional character
type fictional taxon
action find_tuple_counts
relation inspired by
type fictional character
type abstract being
value 3
[{'concept': 'fictional character'}, 'inspired by', [{'concept': 'fictional taxon'}, {'concept': 'abstract being'}]]
SELECT DISTINCT ( COUNT ( ?d ) AS ?e ) WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?n ) ?d WHERE { VALUES ( ?b ) { ( ontology:fictional_taxon ) ( ontology:abstract_being ) } . ?v rdf:type ?b } GROUP BY ?d } . FILTER ( ?n = 3 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q27702142
P451
Q95074
USER
Who is the partner of Esmeralda ?
(Q27702142,P451,c(Q95074))
action filter_type
action find
entity Q27702142
relation P451
type Q95074
['Q27702142', 'P451', {'concept': 'Q95074'}]
SELECT DISTINCT ?e WHERE { resource:Q27702142 property:P451 ?e . ?e rdf:type ontology:Q95074 }
Esmeralda
action filter_type
action find
entity Esmeralda
relation partner
type fictional character
['Esmeralda', 'partner', {'concept': 'fictional character'}]
SELECT DISTINCT ?e WHERE { resource:Esmeralda property:partner ?e . ?e rdf:type ontology:fictional_character }
[]
fictional character
Q27702890
SYSTEM
Phoebus
Q27702890
(Q27702142,P451,c(Q95074))
action filter_type
action find
entity Q27702142
relation P451
type Q95074
The partner of Esmeralda is the [ANSWER]
['Q27702142', 'P451', {'concept': 'Q95074'}]
SELECT DISTINCT ?e WHERE { resource:Q27702142 property:P451 ?e . ?e rdf:type ontology:Q95074 }
Phoebus
The partner of Esmeralda is the Phoebus
Phoebus
action filter_type
action find
entity Esmeralda
relation partner
type fictional character
['Esmeralda', 'partner', {'concept': 'fictional character'}]
SELECT DISTINCT ?e WHERE { resource:Esmeralda property:partner ?e . ?e rdf:type ontology:fictional_character }
[]