Simple Question (Direct)
Simple Question
Q16880003
P21
Q290
USER
Which sex does Frank Gaines belong to ?
(Q16880003,P21,c(Q290))
action filter_type
action find
entity Q16880003
relation P21
type Q290
['Q16880003', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?q WHERE { resource:Q16880003 property:P21 ?q . ?q rdf:type ontology:Q290 }
Frank Gaines
action filter_type
action find
entity Frank Gaines
relation gender
type sex
['Frank Gaines', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?q WHERE { resource:Frank_Gaines property:gender ?q . ?q rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q16880003,P21,c(Q290))
action filter_type
action find
entity Q16880003
relation P21
type Q290
Frank Gaines belongs to [ANSWER]
['Q16880003', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?q WHERE { resource:Q16880003 property:P21 ?q . ?q rdf:type ontology:Q290 }
male
Frank Gaines belongs to male
male
action filter_type
action find
entity Frank Gaines
relation gender
type sex
['Frank Gaines', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?q WHERE { resource:Frank_Gaines property:gender ?q . ?q rdf:type ontology:sex }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
How many musical instruments can approximately 2762 people perform with ?
(c(Q502895),P1303,c(Q34379))
action count
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 2762
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?a ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?z ) AS ?p ) WHERE { ?z property:P1303 ?u . ?u rdf:type ontology:Q34379 . ?z rdf:type ontology:Q502895 } GROUP BY ?u } . FILTER ( ?p = 2762 ) }
action count
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 2762
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?a ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?z ) AS ?p ) WHERE { ?z property:instrument ?u . ?u rdf:type ontology:musical_instrument . ?z rdf:type ontology:common_name } GROUP BY ?u } . FILTER ( ?p = 2762 ) }
[]
musical instrument common name
SYSTEM
4
Q46185 Q8338 Q1444 Q128309
(c(Q502895),P1303,c(Q34379))
action count
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 2762
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?a ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?z ) AS ?p ) WHERE { ?z property:P1303 ?u . ?u rdf:type ontology:Q34379 . ?z rdf:type ontology:Q502895 } GROUP BY ?u } . FILTER ( ?p = 2762 ) }
bass guitar trumpet organ drum kit
4
action count
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 2762
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?a ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?z ) AS ?p ) WHERE { ?z property:instrument ?u . ?u rdf:type ontology:musical_instrument . ?z rdf:type ontology:common_name } GROUP BY ?u } . FILTER ( ?p = 2762 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q16880003
P19
Q56061
USER
Where was Frank Gaines born ?
(Q16880003,P19,c(Q56061))
action filter_type
action find
entity Q16880003
relation P19
type Q56061
['Q16880003', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q56061 . resource:Q16880003 property:P19 ?a }
Frank Gaines
action filter_type
action find
entity Frank Gaines
relation place of birth
type administrative territorial entity
['Frank Gaines', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:administrative_territorial_entity . resource:Frank_Gaines property:place_of_birth ?a }
[]
administrative territorial entity
Q165972
SYSTEM
Fort Lauderdale
Q165972
(Q16880003,P19,c(Q56061))
action filter_type
action find
entity Q16880003
relation P19
type Q56061
Frank Gaines was born in [ANSWER]
['Q16880003', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q56061 . resource:Q16880003 property:P19 ?a }
Fort Lauderdale
Frank Gaines was born in Fort Lauderdale
Fort Lauderdale
action filter_type
action find
entity Frank Gaines
relation place of birth
type administrative territorial entity
['Frank Gaines', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:administrative_territorial_entity . resource:Frank_Gaines property:place_of_birth ?a }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q165972 Q4420698
P20
Q502895
USER
Does Nikolaj Matemjanovič Sipjagin have that administrative territory as the area of death ?
(Q4420698,P20,Q165972)
action is_in
entity Q4420698
action find
entity Q165972
relation P20
['Q4420698', 'P20', 'Q165972']
ASK WHERE { resource:Q165972 property:P20 resource:Q4420698 }
Fort Lauderdale Nikolaj Matemjanovič Sipjagin
action is_in
entity Nikolaj Matemjanovič Sipjagin
action find
entity Fort Lauderdale
relation place of death
['Nikolaj Matemjanovič Sipjagin', 'place of death', 'Fort Lauderdale']
ASK WHERE { resource:Fort_Lauderdale property:place_of_death resource:Nikolaj_Matemjanovič_Sipjagin }
[]
common name
SYSTEM
NO
(Q4420698,P20,Q165972)
action is_in
entity Q4420698
action find
entity Q165972
relation P20
[ANSWER]
['Q4420698', 'P20', 'Q165972']
ASK WHERE { resource:Q165972 property:P20 resource:Q4420698 }
No
action is_in
entity Nikolaj Matemjanovič Sipjagin
action find
entity Fort Lauderdale
relation place of death
['Nikolaj Matemjanovič Sipjagin', 'place of death', 'Fort Lauderdale']
ASK WHERE { resource:Fort_Lauderdale property:place_of_death resource:Nikolaj_Matemjanovič_Sipjagin }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q165972
P17
Q15617994
USER
Which administrative territory is Fort Lauderdale situated in ?
(Q165972,P17,c(Q15617994))
action filter_type
action find
entity Q165972
relation P17
type Q15617994
['Q165972', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { resource:Q165972 property:P17 ?x . ?x rdf:type ontology:Q15617994 }
Fort Lauderdale
action filter_type
action find
entity Fort Lauderdale
relation country
type designation for an administrative territorial entity
['Fort Lauderdale', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:Fort_Lauderdale property:country ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
(Q165972,P17,c(Q15617994))
action filter_type
action find
entity Q165972
relation P17
type Q15617994
Fort Lauderdale is situated in [ANSWER]
['Q165972', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { resource:Q165972 property:P17 ?x . ?x rdf:type ontology:Q15617994 }
United States of America
Fort Lauderdale is situated in United States of America
United States of America
action filter_type
action find
entity Fort Lauderdale
relation country
type designation for an administrative territorial entity
['Fort Lauderdale', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:Fort_Lauderdale property:country ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q26555866
Q15617994
USER
And what about Green Lane School Caretakers Cottage?
(Q26555866,P17,c(Q15617994))
action filter_type
action find
entity Q26555866
relation P17
type Q15617994
['Q26555866', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?t WHERE { resource:Q26555866 property:P17 ?t . ?t rdf:type ontology:Q15617994 }
Green Lane School Caretakers Cottage
action filter_type
action find
entity Green Lane School Caretakers Cottage
relation country
type designation for an administrative territorial entity
['Green Lane School Caretakers Cottage', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { resource:Green_Lane_School_Caretakers_Cottage property:country ?t . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q145
SYSTEM
United Kingdom
Q145
(Q26555866,P17,c(Q15617994))
action filter_type
action find
entity Q26555866
relation P17
type Q15617994
[ANSWER]
['Q26555866', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?t WHERE { resource:Q26555866 property:P17 ?t . ?t rdf:type ontology:Q15617994 }
United Kingdom
United Kingdom
action filter_type
action find
entity Green Lane School Caretakers Cottage
relation country
type designation for an administrative territorial entity
['Green Lane School Caretakers Cottage', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { resource:Green_Lane_School_Caretakers_Cottage property:country ?t . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q53643 Q165972
P190
Q515
USER
Which cities are sister towns of Fort Lauderdale or Lamezia Terme ?
OR((Q165972,P190,c(Q515)), (Q53643,P190,c(Q515)))
action filter_type
action union
action find
entity Q165972
relation P190
action find
entity Q53643
relation P190
type Q515
{'OR': [['Q165972', 'P190', {'concept': 'Q515'}], ['Q53643', 'P190', {'concept': 'Q515'}]]}
SELECT DISTINCT ?d WHERE { { ?v property:P190 ?d . VALUES ( ?v ) { ( resource:Q165972 ) ( resource:Q53643 ) } } . ?d rdf:type ontology:Q515 }
Lamezia Terme Fort Lauderdale
action filter_type
action union
action find
entity Fort Lauderdale
relation sister city
action find
entity Lamezia Terme
relation sister city
type city
{'OR': [['Fort Lauderdale', 'sister city', {'concept': 'city'}], ['Lamezia Terme', 'sister city', {'concept': 'city'}]]}
SELECT DISTINCT ?d WHERE { { ?v property:sister_city ?d . VALUES ( ?v ) { ( resource:Fort_Lauderdale ) ( resource:Lamezia_Terme ) } } . ?d rdf:type ontology:city }
[]
city
Q789233 Q2100 Q52607
SYSTEM
Balassagyarmat, Duisburg, Mar del Plata
Q789233 Q2100 Q52607
OR((Q165972,P190,c(Q515)), (Q53643,P190,c(Q515)))
action filter_type
action union
action find
entity Q165972
relation P190
action find
entity Q53643
relation P190
type Q515
[ANSWERS] are sister towns of Fort Lauderdale or Lamezia Terme
{'OR': [['Q165972', 'P190', {'concept': 'Q515'}], ['Q53643', 'P190', {'concept': 'Q515'}]]}
SELECT DISTINCT ?d WHERE { { ?v property:P190 ?d . VALUES ( ?v ) { ( resource:Q165972 ) ( resource:Q53643 ) } } . ?d rdf:type ontology:Q515 }
Balassagyarmat Duisburg Mar del Plata
Balassagyarmat, Duisburg and Mar del Plata are sister towns of Fort Lauderdale or Lamezia Terme
Balassagyarmat Duisburg Mar del Plata
action filter_type
action union
action find
entity Fort Lauderdale
relation sister city
action find
entity Lamezia Terme
relation sister city
type city
{'OR': [['Fort Lauderdale', 'sister city', {'concept': 'city'}], ['Lamezia Terme', 'sister city', {'concept': 'city'}]]}
SELECT DISTINCT ?d WHERE { { ?v property:sister_city ?d . VALUES ( ?v ) { ( resource:Fort_Lauderdale ) ( resource:Lamezia_Terme ) } } . ?d rdf:type ontology:city }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q53643
P931
Q62447
USER
Which city does that administrative territory serve ?
(c(Q62447),P931,Q789233) (c(Q62447),P931,Q2100) (c(Q62447),P931,Q52607)
action filter_type
action find_reverse
entity Q53643
relation P931
type Q62447
[{'concept': 'Q62447'}, 'P931', 'Q789233'] [{'concept': 'Q62447'}, 'P931', 'Q2100'] [{'concept': 'Q62447'}, 'P931', 'Q52607']
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q62447 . ?s property:P931 resource:Q53643 }
Lamezia Terme
action filter_type
action find_reverse
entity Lamezia Terme
relation place served by airport
type aerodrome
[{'concept': 'aerodrome'}, 'place served by airport', 'Balassagyarmat'] [{'concept': 'aerodrome'}, 'place served by airport', 'Duisburg'] [{'concept': 'aerodrome'}, 'place served by airport', 'Mar del Plata']
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:aerodrome . ?s property:place_served_by_airport resource:Lamezia_Terme }
[]
aerodrome
Q1431860
SYSTEM
Lamezia Terme International Airport
Q1431860
(c(Q62447),P931,Q789233) (c(Q62447),P931,Q2100) (c(Q62447),P931,Q52607)
action filter_type
action find_reverse
entity Q53643
relation P931
type Q62447
That administrative territory serves [ANSWER]
[{'concept': 'Q62447'}, 'P931', 'Q789233'] [{'concept': 'Q62447'}, 'P931', 'Q2100'] [{'concept': 'Q62447'}, 'P931', 'Q52607']
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q62447 . ?s property:P931 resource:Q53643 }
Lamezia Terme International Airport
That administrative territory serves Lamezia Terme International Airport
Lamezia Terme International Airport
action filter_type
action find_reverse
entity Lamezia Terme
relation place served by airport
type aerodrome
[{'concept': 'aerodrome'}, 'place served by airport', 'Balassagyarmat'] [{'concept': 'aerodrome'}, 'place served by airport', 'Duisburg'] [{'concept': 'aerodrome'}, 'place served by airport', 'Mar del Plata']
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:aerodrome . ?s property:place_served_by_airport resource:Lamezia_Terme }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q1431860 Q38
P17
Q15617994
USER
Is Lamezia Terme International Airport a part of Italy ?
(Q1431860,P17,Q38)
action is_in
entity Q38
action find
entity Q1431860
relation P17
['Q1431860', 'P17', 'Q38']
ASK WHERE { resource:Q1431860 property:P17 resource:Q38 }
Lamezia Terme International Airport Italy
action is_in
entity Italy
action find
entity Lamezia Terme International Airport
relation country
['Lamezia Terme International Airport', 'country', 'Italy']
ASK WHERE { resource:Lamezia_Terme_International_Airport property:country resource:Italy }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q1431860,P17,Q38)
action is_in
entity Q38
action find
entity Q1431860
relation P17
[ANSWER]
['Q1431860', 'P17', 'Q38']
ASK WHERE { resource:Q1431860 property:P17 resource:Q38 }
Yes
action is_in
entity Italy
action find
entity Lamezia Terme International Airport
relation country
['Lamezia Terme International Airport', 'country', 'Italy']
ASK WHERE { resource:Lamezia_Terme_International_Airport property:country resource:Italy }
[]