Simple Question (Direct)
Simple Question
Q4391626
P27
Q7275
USER
Which state is the native country of Aleksandr Reva ?
(Q4391626,P27,c(Q7275))
action filter_type
action find
entity Q4391626
relation P27
type Q7275
['Q4391626', 'P27', {'concept': 'Q7275'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q7275 . resource:Q4391626 property:P27 ?d }
Aleksandr Reva
action filter_type
action find
entity Aleksandr Reva
relation country of citizenship
type state
['Aleksandr Reva', 'country of citizenship', {'concept': 'state'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:state . resource:Aleksandr_Reva property:country_of_citizenship ?d }
[]
state
Q15180
SYSTEM
Soviet Union
Q15180
(Q4391626,P27,c(Q7275))
action filter_type
action find
entity Q4391626
relation P27
type Q7275
The [ANSWER] is the native country of Aleksandr Reva
['Q4391626', 'P27', {'concept': 'Q7275'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q7275 . resource:Q4391626 property:P27 ?d }
Soviet Union
The Soviet Union is the native country of Aleksandr Reva
Soviet Union
action filter_type
action find
entity Aleksandr Reva
relation country of citizenship
type state
['Aleksandr Reva', 'country of citizenship', {'concept': 'state'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:state . resource:Aleksandr_Reva property:country_of_citizenship ?d }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q4391626
P106
Q12737077
USER
Which occupation is the profession of that person ?
(Q15180,P106,c(Q12737077))
action filter_type
action find
entity Q4391626
relation P106
type Q12737077
['Q15180', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q12737077 . resource:Q4391626 property:P106 ?g }
Aleksandr Reva
action filter_type
action find
entity Aleksandr Reva
relation occupation
type occupation
['Soviet Union', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:occupation . resource:Aleksandr_Reva property:occupation ?g }
[]
occupation
Q937857
SYSTEM
association football player
Q937857
(Q15180,P106,c(Q12737077))
action filter_type
action find
entity Q4391626
relation P106
type Q12737077
Player [ANSWER] is the profession of that person
['Q15180', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q12737077 . resource:Q4391626 property:P106 ?g }
association football player
Player association football player is the profession of that person
association football player
action filter_type
action find
entity Aleksandr Reva
relation occupation
type occupation
['Soviet Union', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:occupation . resource:Aleksandr_Reva property:occupation ?g }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q4391626
P21
Q290
USER
Which sex does that person belong to ?
(Q937857,P21,c(Q290))
action filter_type
action find
entity Q4391626
relation P21
type Q290
['Q937857', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?c WHERE { resource:Q4391626 property:P21 ?c . ?c rdf:type ontology:Q290 }
Aleksandr Reva
action filter_type
action find
entity Aleksandr Reva
relation gender
type sex
['association football player', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?c WHERE { resource:Aleksandr_Reva property:gender ?c . ?c rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q937857,P21,c(Q290))
action filter_type
action find
entity Q4391626
relation P21
type Q290
That person belongs to [ANSWER]
['Q937857', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?c WHERE { resource:Q4391626 property:P21 ?c . ?c rdf:type ontology:Q290 }
male
That person belongs to male
male
action filter_type
action find
entity Aleksandr Reva
relation gender
type sex
['association football player', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?c WHERE { resource:Aleksandr_Reva property:gender ?c . ?c rdf:type ontology:sex }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation|Incomplete
Q18911299 Q4391626
P21
Q290
USER
And also Richard Launcelot Maury
AND((Q4391626,P21,c(Q290)), (Q18911299,P21,c(Q290)))
action filter_type
action intersection
action find
entity Q4391626
relation P21
action find
entity Q18911299
relation P21
type Q290
{'AND': [['Q4391626', 'P21', {'concept': 'Q290'}], ['Q18911299', 'P21', {'concept': 'Q290'}]]}
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q290 . resource:Q4391626 property:P21 ?h . resource:Q18911299 property:P21 ?h }
Richard Launcelot Maury Aleksandr Reva
action filter_type
action intersection
action find
entity Aleksandr Reva
relation gender
action find
entity Richard Launcelot Maury
relation gender
type sex
{'AND': [['Aleksandr Reva', 'gender', {'concept': 'sex'}], ['Richard Launcelot Maury', 'gender', {'concept': 'sex'}]]}
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:sex . resource:Aleksandr_Reva property:gender ?h . resource:Richard_Launcelot_Maury property:gender ?h }
[]
sex
Q6581097
SYSTEM
male
Q6581097
AND((Q4391626,P21,c(Q290)), (Q18911299,P21,c(Q290)))
action filter_type
action intersection
action find
entity Q4391626
relation P21
action find
entity Q18911299
relation P21
type Q290
[ANSWER]
{'AND': [['Q4391626', 'P21', {'concept': 'Q290'}], ['Q18911299', 'P21', {'concept': 'Q290'}]]}
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q290 . resource:Q4391626 property:P21 ?h . resource:Q18911299 property:P21 ?h }
male
male
action filter_type
action intersection
action find
entity Aleksandr Reva
relation gender
action find
entity Richard Launcelot Maury
relation gender
type sex
{'AND': [['Aleksandr Reva', 'gender', {'concept': 'sex'}], ['Richard Launcelot Maury', 'gender', {'concept': 'sex'}]]}
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:sex . resource:Aleksandr_Reva property:gender ?h . resource:Richard_Launcelot_Maury property:gender ?h }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P1376
Q7275 Q515 Q20667921
USER
Which states have max number of cities or french administrative divisions have their center of administration ?
(c(Q515)|c(Q20667921),P1376,c(Q7275))
action argmax
action union
action find_reverse_tuple_counts
relation P1376
type Q7275
type Q515
action find_reverse_tuple_counts
relation P1376
type Q7275
type Q20667921
[[{'concept': 'Q515'}, {'concept': 'Q20667921'}], 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( MAX ( ?w ) AS ?a ) { SELECT DISTINCT ( COUNT ( ?u ) AS ?w ) ?m WHERE { { ?u property:P1376 ?m . ?m rdf:type ontology:Q7275 . ?u rdf:type ontology:Q515 } UNION { ?u property:P1376 ?m . ?u rdf:type ontology:Q20667921 . ?m rdf:type ontology:Q7275 } } GROUP BY ?m } } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?g ) ?s WHERE { VALUES ( ?e ) { ( ontology:Q515 ) ( ontology:Q20667921 ) } . ?n rdf:type ?e } GROUP BY ?s } . FILTER ( ?g = ?a ) }
action argmax
action union
action find_reverse_tuple_counts
relation capital of
type state
type city
action find_reverse_tuple_counts
relation capital of
type state
type type of french administrative division
[[{'concept': 'city'}, {'concept': 'type of french administrative division'}], 'capital of', {'concept': 'state'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( MAX ( ?w ) AS ?a ) { SELECT DISTINCT ( COUNT ( ?u ) AS ?w ) ?m WHERE { { ?u property:capital_of ?m . ?m rdf:type ontology:state . ?u rdf:type ontology:city } UNION { ?u property:capital_of ?m . ?u rdf:type ontology:type_of_french_administrative_division . ?m rdf:type ontology:state } } GROUP BY ?m } } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?g ) ?s WHERE { VALUES ( ?e ) { ( ontology:city ) ( ontology:type_of_french_administrative_division ) } . ?n rdf:type ?e } GROUP BY ?s } . FILTER ( ?g = ?a ) }
[]
state city type of french administrative division
Q13426199
SYSTEM
Republic of China
Q13426199
(c(Q515)|c(Q20667921),P1376,c(Q7275))
action argmax
action union
action find_reverse_tuple_counts
relation P1376
type Q7275
type Q515
action find_reverse_tuple_counts
relation P1376
type Q7275
type Q20667921
The [ANSWER] have max number of cities or french administrative divisions have their center of administration
[[{'concept': 'Q515'}, {'concept': 'Q20667921'}], 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( MAX ( ?w ) AS ?a ) { SELECT DISTINCT ( COUNT ( ?u ) AS ?w ) ?m WHERE { { ?u property:P1376 ?m . ?m rdf:type ontology:Q7275 . ?u rdf:type ontology:Q515 } UNION { ?u property:P1376 ?m . ?u rdf:type ontology:Q20667921 . ?m rdf:type ontology:Q7275 } } GROUP BY ?m } } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?g ) ?s WHERE { VALUES ( ?e ) { ( ontology:Q515 ) ( ontology:Q20667921 ) } . ?n rdf:type ?e } GROUP BY ?s } . FILTER ( ?g = ?a ) }
Republic of China
The Republic of China have max number of cities or french administrative divisions have their center of administration
Republic of China
action argmax
action union
action find_reverse_tuple_counts
relation capital of
type state
type city
action find_reverse_tuple_counts
relation capital of
type state
type type of french administrative division
[[{'concept': 'city'}, {'concept': 'type of french administrative division'}], 'capital of', {'concept': 'state'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( MAX ( ?w ) AS ?a ) { SELECT DISTINCT ( COUNT ( ?u ) AS ?w ) ?m WHERE { { ?u property:capital_of ?m . ?m rdf:type ontology:state . ?u rdf:type ontology:city } UNION { ?u property:capital_of ?m . ?u rdf:type ontology:type_of_french_administrative_division . ?m rdf:type ontology:state } } GROUP BY ?m } } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?g ) ?s WHERE { VALUES ( ?e ) { ( ontology:city ) ( ontology:type_of_french_administrative_division ) } . ?n rdf:type ?e } GROUP BY ?s } . FILTER ( ?g = ?a ) }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q13426199
P112
Q43229
USER
Which organization was started by that state ?
(c(Q43229),P112,Q13426199)
action filter_type
action find_reverse
entity Q13426199
relation P112
type Q43229
[{'concept': 'Q43229'}, 'P112', 'Q13426199']
SELECT DISTINCT ?i WHERE { ?i property:P112 resource:Q13426199 . ?i rdf:type ontology:Q43229 }
Republic of China
action filter_type
action find_reverse
entity Republic of China
relation founder
type organization
[{'concept': 'organization'}, 'founder', 'Republic of China']
SELECT DISTINCT ?i WHERE { ?i property:founder resource:Republic_of_China . ?i rdf:type ontology:organization }
[]
organization
Q7809
SYSTEM
United Nations Educational, Scientific and Cultural Organization
Q7809
(c(Q43229),P112,Q13426199)
action filter_type
action find_reverse
entity Q13426199
relation P112
type Q43229
[ANSWER] was started by that state
[{'concept': 'Q43229'}, 'P112', 'Q13426199']
SELECT DISTINCT ?i WHERE { ?i property:P112 resource:Q13426199 . ?i rdf:type ontology:Q43229 }
United Nations Educational, Scientific and Cultural Organization
United Nations Educational, Scientific and Cultural Organization was started by that state
United Nations Educational, Scientific and Cultural Organization
action filter_type
action find_reverse
entity Republic of China
relation founder
type organization
[{'concept': 'organization'}, 'founder', 'Republic of China']
SELECT DISTINCT ?i WHERE { ?i property:founder resource:Republic_of_China . ?i rdf:type ontology:organization }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q13426199
P36
Q56061
USER
Which administrative territory is associated to Republic of China as the capital ?
(Q13426199,P36,c(Q56061))
action filter_type
action find
entity Q13426199
relation P36
type Q56061
['Q13426199', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?v WHERE { resource:Q13426199 property:P36 ?v . ?v rdf:type ontology:Q56061 }
Republic of China
action filter_type
action find
entity Republic of China
relation capital
type administrative territorial entity
['Republic of China', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:Republic_of_China property:capital ?v . ?v rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q956
SYSTEM
Beijing
Q956
(Q13426199,P36,c(Q56061))
action filter_type
action find
entity Q13426199
relation P36
type Q56061
[ANSWER] is associated to Republic of China as the capital
['Q13426199', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?v WHERE { resource:Q13426199 property:P36 ?v . ?v rdf:type ontology:Q56061 }
Beijing
Beijing is associated to Republic of China as the capital
Beijing
action filter_type
action find
entity Republic of China
relation capital
type administrative territorial entity
['Republic of China', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:Republic_of_China property:capital ?v . ?v rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q4931109
Q56061
USER
And what about George Local Municipality?
(Q4931109,P36,c(Q56061))
action filter_type
action find
entity Q4931109
relation P36
type Q56061
['Q4931109', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q56061 . resource:Q4931109 property:P36 ?d }
George Local Municipality
action filter_type
action find
entity George Local Municipality
relation capital
type administrative territorial entity
['George Local Municipality', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:administrative_territorial_entity . resource:George_Local_Municipality property:capital ?d }
[]
administrative territorial entity
Q370456
SYSTEM
George
Q370456
(Q4931109,P36,c(Q56061))
action filter_type
action find
entity Q4931109
relation P36
type Q56061
[ANSWER]
['Q4931109', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q56061 . resource:Q4931109 property:P36 ?d }
George
George
action filter_type
action find
entity George Local Municipality
relation capital
type administrative territorial entity
['George Local Municipality', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:administrative_territorial_entity . resource:George_Local_Municipality property:capital ?d }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q370456
P19
Q502895
USER
Which people have birthplace at that administrative territory ?
(c(Q502895),P19,Q370456)
action filter_type
action find_reverse
entity Q370456
relation P19
type Q502895
[{'concept': 'Q502895'}, 'P19', 'Q370456']
SELECT DISTINCT ?d WHERE { ?d property:P19 resource:Q370456 . ?d rdf:type ontology:Q502895 }
George
action filter_type
action find_reverse
entity George
relation place of birth
type common name
[{'concept': 'common name'}, 'place of birth', 'George']
SELECT DISTINCT ?d WHERE { ?d property:place_of_birth resource:George . ?d rdf:type ontology:common_name }
[]
common name
Q2840331 Q2405761 Q3130254
SYSTEM
Altenstadt Hulme, Marco Wentzel, Hendrik Gerber
Q2900404 Q6754672 Q3130254 Q3423501 Q5012275 Q4942183 Q7781487 Q166094 Q6149781 Q290813 Q2840331 Q4806195 Q8014281 Q16334615 Q8002240 Q2405761 Q4805377
(c(Q502895),P19,Q370456)
action filter_type
action find_reverse
entity Q370456
relation P19
type Q502895
[ANSWERS] have birthplace at that administrative territory
[{'concept': 'Q502895'}, 'P19', 'Q370456']
SELECT DISTINCT ?d WHERE { ?d property:P19 resource:Q370456 . ?d rdf:type ontology:Q502895 }
Bevin Fortuin Marais Erasmus Hendrik Gerber Reginald Frederick Lawrence CJ Stander Monique Cassie Theo Samuels Zane Kirchner Jan Rabie Meryl Cassie Altenstadt Hulme Ashwin Scott William Lancelot Jordan Heinrich Bruiners Wilhelm Loock Marco Wentzel Ashley Buys
Altenstadt Hulme, Marco Wentzel and Hendrik Gerber have birthplace at that administrative territory
Altenstadt Hulme Marco Wentzel Hendrik Gerber
action filter_type
action find_reverse
entity George
relation place of birth
type common name
[{'concept': 'common name'}, 'place of birth', 'George']
SELECT DISTINCT ?d WHERE { ?d property:place_of_birth resource:George . ?d rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6581097 Q370456
P19 P21
Q502895
USER
Which people were born at George and have male as the sex ?
AND((c(Q502895),P19,Q370456), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q370456
relation P19
action find_reverse
entity Q6581097
relation P21
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P19', 'Q370456'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?e WHERE { ?e property:P19 resource:Q370456 . ?e property:P21 resource:Q6581097 . ?e rdf:type ontology:Q502895 }
male George
action filter_type
action intersection
action find_reverse
entity George
relation place of birth
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'place of birth', 'George'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?e WHERE { ?e property:place_of_birth resource:George . ?e property:gender resource:male . ?e rdf:type ontology:common_name }
[]
common name
Q8002240 Q2405761 Q4805377 Q3130254 Q2900404 Q3423501 Q5012275 Q6149781 Q4806195 Q8014281
SYSTEM
Some of them are Wilhelm Loock, Marco Wentzel, Ashley Buys, Hendrik Gerber, Bevin Fortuin, Reginald Frederick Lawrence, CJ Stander, Jan Rabie, Ashwin Scott, William Lancelot Jordan
Q6754672 Q3130254 Q3423501 Q5012275 Q7781487 Q166094 Q6149781 Q2840331 Q2405761 Q2900404 Q16334615 Q4805377 Q8002240 Q4806195 Q8014281
AND((c(Q502895),P19,Q370456), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q370456
relation P19
action find_reverse
entity Q6581097
relation P21
type Q502895
[ANSWERS] were born at George and have male as the sex
{'AND': [[{'concept': 'Q502895'}, 'P19', 'Q370456'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?e WHERE { ?e property:P19 resource:Q370456 . ?e property:P21 resource:Q6581097 . ?e rdf:type ontology:Q502895 }
Marais Erasmus Hendrik Gerber Reginald Frederick Lawrence CJ Stander Theo Samuels Zane Kirchner Jan Rabie Altenstadt Hulme Marco Wentzel Bevin Fortuin Heinrich Bruiners Ashley Buys Wilhelm Loock Ashwin Scott William Lancelot Jordan
Wilhelm Loock, Marco Wentzel, Ashley Buys, Hendrik Gerber, Bevin Fortuin, Reginald Frederick Lawrence, CJ Stander, Jan Rabie, Ashwin Scott and William Lancelot Jordan were born at George and have male as the sex
Wilhelm Loock Marco Wentzel Ashley Buys Hendrik Gerber Bevin Fortuin Reginald Frederick Lawrence CJ Stander Jan Rabie Ashwin Scott William Lancelot Jordan
action filter_type
action intersection
action find_reverse
entity George
relation place of birth
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'place of birth', 'George'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?e WHERE { ?e property:place_of_birth resource:George . ?e property:gender resource:male . ?e rdf:type ontology:common_name }
[]