Simple Question (Direct)
Simple Question
Q58098
P551
Q56061
USER
What was the place of residence of José García Belaúnde ?
(Q58098,P551,c(Q56061))
action filter_type
action find
entity Q58098
relation P551
type Q56061
['Q58098', 'P551', {'concept': 'Q56061'}]
SELECT DISTINCT ?j WHERE { resource:Q58098 property:P551 ?j . ?j rdf:type ontology:Q56061 }
José García Belaúnde
action filter_type
action find
entity José García Belaúnde
relation residence
type administrative territorial entity
['José García Belaúnde', 'residence', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:José_García_Belaúnde property:residence ?j . ?j rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q2868
SYSTEM
Lima
Q2868
(Q58098,P551,c(Q56061))
action filter_type
action find
entity Q58098
relation P551
type Q56061
The place of residence of José García Belaúnde was in [ANSWER]
['Q58098', 'P551', {'concept': 'Q56061'}]
SELECT DISTINCT ?j WHERE { resource:Q58098 property:P551 ?j . ?j rdf:type ontology:Q56061 }
Lima
The place of residence of José García Belaúnde was in Lima
Lima
action filter_type
action find
entity José García Belaúnde
relation residence
type administrative territorial entity
['José García Belaúnde', 'residence', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:José_García_Belaúnde property:residence ?j . ?j rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q58098
P39
Q4164871
USER
What was a position for which that person was appointed ?
(Q2868,P39,c(Q4164871))
action filter_type
action find
entity Q58098
relation P39
type Q4164871
['Q2868', 'P39', {'concept': 'Q4164871'}]
SELECT DISTINCT ?t WHERE { resource:Q58098 property:P39 ?t . ?t rdf:type ontology:Q4164871 }
José García Belaúnde
action filter_type
action find
entity José García Belaúnde
relation position held
type position
['Lima', 'position held', {'concept': 'position'}]
SELECT DISTINCT ?t WHERE { resource:José_García_Belaúnde property:position_held ?t . ?t rdf:type ontology:position }
[]
position
Q121998
SYSTEM
ambassador
Q121998
(Q2868,P39,c(Q4164871))
action filter_type
action find
entity Q58098
relation P39
type Q4164871
To [ANSWER]
['Q2868', 'P39', {'concept': 'Q4164871'}]
SELECT DISTINCT ?t WHERE { resource:Q58098 property:P39 ?t . ?t rdf:type ontology:Q4164871 }
ambassador
To ambassador
ambassador
action filter_type
action find
entity José García Belaúnde
relation position held
type position
['Lima', 'position held', {'concept': 'position'}]
SELECT DISTINCT ?t WHERE { resource:José_García_Belaúnde property:position_held ?t . ?t rdf:type ontology:position }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2868
P163
Q17335294
USER
What has Lima as its flag
(Q2868,P163,c(Q17335294))
action filter_type
action find
entity Q2868
relation P163
type Q17335294
['Q2868', 'P163', {'concept': 'Q17335294'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q17335294 . resource:Q2868 property:P163 ?x }
Lima
action filter_type
action find
entity Lima
relation flag
type flag or coat of arms
['Lima', 'flag', {'concept': 'flag or coat of arms'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:flag_or_coat_of_arms . resource:Lima property:flag ?x }
[]
flag or coat of arms
Q5456768
SYSTEM
Flag of Lima
Q5456768
(Q2868,P163,c(Q17335294))
action filter_type
action find
entity Q2868
relation P163
type Q17335294
The [ANSWER] has Lima as its flag
['Q2868', 'P163', {'concept': 'Q17335294'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q17335294 . resource:Q2868 property:P163 ?x }
Flag of Lima
The Flag of Lima has Lima as its flag
Flag of Lima
action filter_type
action find
entity Lima
relation flag
type flag or coat of arms
['Lima', 'flag', {'concept': 'flag or coat of arms'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:flag_or_coat_of_arms . resource:Lima property:flag ?x }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q6106
Q17335294
USER
And how about Portland?
(Q6106,P163,c(Q17335294))
action filter_type
action find
entity Q6106
relation P163
type Q17335294
['Q6106', 'P163', {'concept': 'Q17335294'}]
SELECT DISTINCT ?j WHERE { resource:Q6106 property:P163 ?j . ?j rdf:type ontology:Q17335294 }
Portland
action filter_type
action find
entity Portland
relation flag
type flag or coat of arms
['Portland', 'flag', {'concept': 'flag or coat of arms'}]
SELECT DISTINCT ?j WHERE { resource:Portland property:flag ?j . ?j rdf:type ontology:flag_or_coat_of_arms }
[]
flag or coat of arms
Q5456804
SYSTEM
Flag of Portland
Q5456804
(Q6106,P163,c(Q17335294))
action filter_type
action find
entity Q6106
relation P163
type Q17335294
[ANSWER]
['Q6106', 'P163', {'concept': 'Q17335294'}]
SELECT DISTINCT ?j WHERE { resource:Q6106 property:P163 ?j . ?j rdf:type ontology:Q17335294 }
Flag of Portland
Flag of Portland
action filter_type
action find
entity Portland
relation flag
type flag or coat of arms
['Portland', 'flag', {'concept': 'flag or coat of arms'}]
SELECT DISTINCT ?j WHERE { resource:Portland property:flag ?j . ?j rdf:type ontology:flag_or_coat_of_arms }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P237
Q17335294 Q502895
USER
How many people are atleast 1 coat of arms the coat of arms for ?
(c(Q502895),P237,c(Q17335294))
action count
action atleast
action find_tuple_counts
relation P237
type Q502895
type Q17335294
value 1
[{'concept': 'Q502895'}, 'P237', {'concept': 'Q17335294'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?r ) WHERE { { SELECT DISTINCT ?d ( COUNT ( ?t ) AS ?q ) WHERE { ?t rdf:type ontology:Q17335294 . ?d rdf:type ontology:Q502895 . ?d property:P237 ?t } GROUP BY ?d } . FILTER ( ?q >= 1 ) }
action count
action atleast
action find_tuple_counts
relation coat of arms
type common name
type flag or coat of arms
value 1
[{'concept': 'common name'}, 'coat of arms', {'concept': 'flag or coat of arms'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?r ) WHERE { { SELECT DISTINCT ?d ( COUNT ( ?t ) AS ?q ) WHERE { ?t rdf:type ontology:flag_or_coat_of_arms . ?d rdf:type ontology:common_name . ?d property:coat_of_arms ?t } GROUP BY ?d } . FILTER ( ?q >= 1 ) }
[]
flag or coat of arms common name
SYSTEM
40
Q245402 Q2636385 Q22994325 Q11694919 Q2094034 Q20748969 Q9149852 Q191479 Q26161453 Q675109 Q726857 Q23070321 Q294136 Q16635932 Q23 Q16464107 Q9179942 Q3917733 Q16476850 Q450675 Q9343387 Q12658513 Q22327495 Q19943 Q9145445 Q16454178 Q18036034 Q22994279 Q2640795 Q11763952 Q22328197 Q18555941 Q26161668 Q22992835 Q22327519 Q339351 Q23070444 Q762725 Q6185575 Q12657701
(c(Q502895),P237,c(Q17335294))
action count
action atleast
action find_tuple_counts
relation P237
type Q502895
type Q17335294
value 1
[ANSWER]
[{'concept': 'Q502895'}, 'P237', {'concept': 'Q17335294'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?r ) WHERE { { SELECT DISTINCT ?d ( COUNT ( ?t ) AS ?q ) WHERE { ?t rdf:type ontology:Q17335294 . ?d rdf:type ontology:Q502895 . ?d property:P237 ?t } GROUP BY ?d } . FILTER ( ?q >= 1 ) }
Zygmunt Wróblewski Merkelis Giedraitis Walenty Wróblewski Dowmont Franciszek Giedroyć Edward Woyniłłowicz Józef Wróblewski Ambroży Kazimierz Kościuszko Tadeusz Kościuszko Leon Guttry Andrzej Wróblewski Władysław Wróblewski Helena Tyszkiewicz Emilia Plater Antanas Giedraitis George Washington Matas Giedraitis Bronisław Wróblewski Martynas Marcelis Giedraitis Vladislovas Baltramiejus Giedraitis Francis Stanisław Wróblewski Juozas Giedraitis Wincenty Wróblewski Juan Carlos I Aleksander Guttry Józef Billewicz Czesław Pieniążek Antoni Wróblewski Aleksander Chodkiewicz Ludwik Tadeusz Kościuszko Antoni Wróblewski Edward Kowerski Maksymilian Gutry Antoni Wróblewski Waleria Wróblewska Jan Łaski Piotr Wróblewski Semeon Olshanski Jerzy Wróblewski Jonas Juraga-Giedraitis
40
action count
action atleast
action find_tuple_counts
relation coat of arms
type common name
type flag or coat of arms
value 1
[{'concept': 'common name'}, 'coat of arms', {'concept': 'flag or coat of arms'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?r ) WHERE { { SELECT DISTINCT ?d ( COUNT ( ?t ) AS ?q ) WHERE { ?t rdf:type ontology:flag_or_coat_of_arms . ?d rdf:type ontology:common_name . ?d property:coat_of_arms ?t } GROUP BY ?d } . FILTER ( ?q >= 1 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q2868
P1376
Q7275 Q15617994
USER
How many states and administrative territories have Lima as their county seat ?
(Q2868,P1376,c(Q7275)) (Q2868,P1376,c(Q15617994))
action count
action union
action filter_type
action find
entity Q2868
relation P1376
type Q7275
action filter_type
action find
entity Q2868
relation P1376
type Q15617994
['Q2868', 'P1376', {'concept': 'Q7275'}] ['Q2868', 'P1376', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?l ) WHERE { ?r rdf:type ?p . VALUES ( ?p ) { ( ontology:Q7275 ) ( ontology:Q15617994 ) } }
Lima
action count
action union
action filter_type
action find
entity Lima
relation capital of
type state
action filter_type
action find
entity Lima
relation capital of
type designation for an administrative territorial entity
['Lima', 'capital of', {'concept': 'state'}] ['Lima', 'capital of', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?l ) WHERE { ?r rdf:type ?p . VALUES ( ?p ) { ( ontology:state ) ( ontology:designation_for_an_administrative_territorial_entity ) } }
[]
state designation for an administrative territorial entity
SYSTEM
1 states and 1 administrative territories
Q419 Q7251405
(Q2868,P1376,c(Q7275)) (Q2868,P1376,c(Q15617994))
action count
action union
action filter_type
action find
entity Q2868
relation P1376
type Q7275
action filter_type
action find
entity Q2868
relation P1376
type Q15617994
[ANSWER]
['Q2868', 'P1376', {'concept': 'Q7275'}] ['Q2868', 'P1376', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?l ) WHERE { ?r rdf:type ?p . VALUES ( ?p ) { ( ontology:Q7275 ) ( ontology:Q15617994 ) } }
Peru Protectorate of Peru
1 states and 1 administrative territories
action count
action union
action filter_type
action find
entity Lima
relation capital of
type state
action filter_type
action find
entity Lima
relation capital of
type designation for an administrative territorial entity
['Lima', 'capital of', {'concept': 'state'}] ['Lima', 'capital of', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?l ) WHERE { ?r rdf:type ?p . VALUES ( ?p ) { ( ontology:state ) ( ontology:designation_for_an_administrative_territorial_entity ) } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q168383 Q121998
P127 P361
Q43229
USER
Which organizations are ambassador a portion of or owned Universal Studios ?
OR((Q121998,P361,c(Q43229)), (Q168383,P127,c(Q43229)))
action filter_type
action union
action find
entity Q121998
relation P361
action find
entity Q168383
relation P127
type Q43229
{'OR': [['Q121998', 'P361', {'concept': 'Q43229'}], ['Q168383', 'P127', {'concept': 'Q43229'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Q168383 property:P127 ?n } UNION { resource:Q121998 property:P361 ?n } } . ?n rdf:type ontology:Q43229 }
Universal Studios ambassador
action filter_type
action union
action find
entity ambassador
relation part of
action find
entity Universal Studios
relation owned by
type organization
{'OR': [['ambassador', 'part of', {'concept': 'organization'}], ['Universal Studios', 'owned by', {'concept': 'organization'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Universal_Studios property:owned_by ?n } UNION { resource:ambassador property:part_of ?n } } . ?n rdf:type ontology:organization }
[]
organization
Q724759 Q3917681
SYSTEM
NBCUniversal, embassy
Q724759 Q3917681
OR((Q121998,P361,c(Q43229)), (Q168383,P127,c(Q43229)))
action filter_type
action union
action find
entity Q121998
relation P361
action find
entity Q168383
relation P127
type Q43229
[ANSWERS] are ambassador a portion of or owned Universal Studios
{'OR': [['Q121998', 'P361', {'concept': 'Q43229'}], ['Q168383', 'P127', {'concept': 'Q43229'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Q168383 property:P127 ?n } UNION { resource:Q121998 property:P361 ?n } } . ?n rdf:type ontology:Q43229 }
NBCUniversal embassy
NBCUniversal and embassy are ambassador a portion of or owned Universal Studios
NBCUniversal embassy
action filter_type
action union
action find
entity ambassador
relation part of
action find
entity Universal Studios
relation owned by
type organization
{'OR': [['ambassador', 'part of', {'concept': 'organization'}], ['Universal Studios', 'owned by', {'concept': 'organization'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Universal_Studios property:owned_by ?n } UNION { resource:ambassador property:part_of ?n } } . ?n rdf:type ontology:organization }
[]
Clarification
Simple Question|Single Entity|Indirect
Q724759
P159
Q18142
USER
Where is the head office for that organization located ?
(Q724759,P159,c(Q18142))
action filter_type
action find
entity Q724759
relation P159
type Q18142
['Q724759', 'P159', {'concept': 'Q18142'}]
SELECT DISTINCT ?x WHERE { resource:Q724759 property:P159 ?x . ?x rdf:type ontology:Q18142 }
NBCUniversal
action filter_type
action find
entity NBCUniversal
relation headquarters location
type tower block
['NBCUniversal', 'headquarters location', {'concept': 'tower block'}]
SELECT DISTINCT ?x WHERE { resource:NBCUniversal property:headquarters_location ?x . ?x rdf:type ontology:tower_block }
[]
tower block
Clarification for simple ques.
Q3917681
SYSTEM
Did you mean embassy ?
Q724759 Q3917681
(Q724759,P159,c(Q18142)) (Q3917681,P159,c(Q18142))
[ANSWER]
['Q724759', 'P159', {'concept': 'Q18142'}] ['Q3917681', 'P159', {'concept': 'Q18142'}]
SELECT DISTINCT ?x WHERE { resource:Q724759 property:P159 ?x . ?x rdf:type ontology:Q18142 }
NBCUniversal embassy
Did you mean embassy ?
embassy
['NBCUniversal', 'headquarters location', {'concept': 'tower block'}] ['embassy', 'headquarters location', {'concept': 'tower block'}]
SELECT DISTINCT ?x WHERE { resource:NBCUniversal property:headquarters_location ?x . ?x rdf:type ontology:tower_block }
[]
Simple Question (Coreferenced)
USER
No, I meant NBCUniversal. Could you tell me the answer for that?
(Q724759,P159,c(Q18142))
Q724759
['Q724759', 'P159', {'concept': 'Q18142'}]
['NBCUniversal', 'headquarters location', {'concept': 'tower block'}]
[]
Q680614
SYSTEM
30 Rockefeller Plaza
Q680614
(Q724759,P159,c(Q18142))
action filter_type
action find
entity Q724759
relation P159
type Q18142
The head office for that organization is located at [ANSWER]
['Q724759', 'P159', {'concept': 'Q18142'}]
SELECT DISTINCT ?x WHERE { resource:Q724759 property:P159 ?x . ?x rdf:type ontology:Q18142 }
30 Rockefeller Plaza
The head office for that organization is located at 30 Rockefeller Plaza
30 Rockefeller Plaza
action filter_type
action find
entity NBCUniversal
relation headquarters location
type tower block
['NBCUniversal', 'headquarters location', {'concept': 'tower block'}]
SELECT DISTINCT ?x WHERE { resource:NBCUniversal property:headquarters_location ?x . ?x rdf:type ontology:tower_block }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q58098
P40
Q502895
USER
Who has José García Belaúnde as a child ?
(c(Q502895),P40,Q58098)
action filter_type
action find_reverse
entity Q58098
relation P40
type Q502895
[{'concept': 'Q502895'}, 'P40', 'Q58098']
SELECT DISTINCT ?f WHERE { ?f property:P40 resource:Q58098 . ?f rdf:type ontology:Q502895 }
José García Belaúnde
action filter_type
action find_reverse
entity José García Belaúnde
relation child
type common name
[{'concept': 'common name'}, 'child', 'José García Belaúnde']
SELECT DISTINCT ?f WHERE { ?f property:child resource:José_García_Belaúnde . ?f rdf:type ontology:common_name }
[]
common name
Q16303350
SYSTEM
Domingo García Rada
Q16303350
(c(Q502895),P40,Q58098)
action filter_type
action find_reverse
entity Q58098
relation P40
type Q502895
[ANSWER] has José García Belaúnde as a child
[{'concept': 'Q502895'}, 'P40', 'Q58098']
SELECT DISTINCT ?f WHERE { ?f property:P40 resource:Q58098 . ?f rdf:type ontology:Q502895 }
Domingo García Rada
Domingo García Rada has José García Belaúnde as a child
Domingo García Rada
action filter_type
action find_reverse
entity José García Belaúnde
relation child
type common name
[{'concept': 'common name'}, 'child', 'José García Belaúnde']
SELECT DISTINCT ?f WHERE { ?f property:child resource:José_García_Belaúnde . ?f rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q16303350
P22
Q502895
USER
Which people have that one as a parent ?
(c(Q502895),P22,Q16303350)
action filter_type
action find_reverse
entity Q16303350
relation P22
type Q502895
[{'concept': 'Q502895'}, 'P22', 'Q16303350']
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q502895 . ?a property:P22 resource:Q16303350 }
Domingo García Rada
action filter_type
action find_reverse
entity Domingo García Rada
relation father
type common name
[{'concept': 'common name'}, 'father', 'Domingo García Rada']
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:common_name . ?a property:father resource:Domingo_García_Rada }
[]
common name
Q9095249 Q58098
SYSTEM
Víctor Andrés García Belaúnde, José García Belaúnde
Q9095249 Q58098
(c(Q502895),P22,Q16303350)
action filter_type
action find_reverse
entity Q16303350
relation P22
type Q502895
[ANSWERS] have that one as a parent
[{'concept': 'Q502895'}, 'P22', 'Q16303350']
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q502895 . ?a property:P22 resource:Q16303350 }
Víctor Andrés García Belaúnde José García Belaúnde
Víctor Andrés García Belaúnde and José García Belaúnde have that one as a parent
Víctor Andrés García Belaúnde José García Belaúnde
action filter_type
action find_reverse
entity Domingo García Rada
relation father
type common name
[{'concept': 'common name'}, 'father', 'Domingo García Rada']
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:common_name . ?a property:father resource:Domingo_García_Rada }
[]