Simple Question (Direct)
Simple Question
Q477872
P19
Q56061
USER
Which administrative territory is the birthplace of Rachid Azzouzi ?
(Q477872,P19,c(Q56061))
action filter_type
action find
entity Q477872
relation P19
type Q56061
['Q477872', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?g WHERE { resource:Q477872 property:P19 ?g . ?g rdf:type ontology:Q56061 }
Rachid Azzouzi
action filter_type
action find
entity Rachid Azzouzi
relation place of birth
type administrative territorial entity
['Rachid Azzouzi', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { resource:Rachid_Azzouzi property:place_of_birth ?g . ?g rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q80985
SYSTEM
Fes
Q80985
(Q477872,P19,c(Q56061))
action filter_type
action find
entity Q477872
relation P19
type Q56061
[ANSWER] is the birthplace of Rachid Azzouzi
['Q477872', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?g WHERE { resource:Q477872 property:P19 ?g . ?g rdf:type ontology:Q56061 }
Fes
Fes is the birthplace of Rachid Azzouzi
Fes
action filter_type
action find
entity Rachid Azzouzi
relation place of birth
type administrative territorial entity
['Rachid Azzouzi', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { resource:Rachid_Azzouzi property:place_of_birth ?g . ?g rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q80985
P931
Q62447
USER
Which aerodrome serves that administrative territory ?
(c(Q62447),P931,Q80985)
action filter_type
action find_reverse
entity Q80985
relation P931
type Q62447
[{'concept': 'Q62447'}, 'P931', 'Q80985']
SELECT DISTINCT ?p WHERE { ?p property:P931 resource:Q80985 . ?p rdf:type ontology:Q62447 }
Fes
action filter_type
action find_reverse
entity Fes
relation place served by airport
type aerodrome
[{'concept': 'aerodrome'}, 'place served by airport', 'Fes']
SELECT DISTINCT ?p WHERE { ?p property:place_served_by_airport resource:Fes . ?p rdf:type ontology:aerodrome }
[]
aerodrome
Q1431302
SYSTEM
Fes-Saïss Airport
Q1431302
(c(Q62447),P931,Q80985)
action filter_type
action find_reverse
entity Q80985
relation P931
type Q62447
[ANSWER] serves that administrative territory
[{'concept': 'Q62447'}, 'P931', 'Q80985']
SELECT DISTINCT ?p WHERE { ?p property:P931 resource:Q80985 . ?p rdf:type ontology:Q62447 }
Fes-Saïss Airport
Fes-Saïss Airport serves that administrative territory
Fes-Saïss Airport
action filter_type
action find_reverse
entity Fes
relation place served by airport
type aerodrome
[{'concept': 'aerodrome'}, 'place served by airport', 'Fes']
SELECT DISTINCT ?p WHERE { ?p property:place_served_by_airport resource:Fes . ?p rdf:type ontology:aerodrome }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q80985
P1376
Q7275
USER
Which states have that administrative territory as their county seat ?
(Q1431302,P1376,c(Q7275))
action filter_type
action find
entity Q80985
relation P1376
type Q7275
['Q1431302', 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ?v WHERE { resource:Q80985 property:P1376 ?v . ?v rdf:type ontology:Q7275 }
Fes
action filter_type
action find
entity Fes
relation capital of
type state
['Fes-Saïss Airport', 'capital of', {'concept': 'state'}]
SELECT DISTINCT ?v WHERE { resource:Fes property:capital_of ?v . ?v rdf:type ontology:state }
[]
state
Q582861 Q431575
SYSTEM
Marinid dynasty, Idrisid dynasty
Q582861 Q431575
(Q1431302,P1376,c(Q7275))
action filter_type
action find
entity Q80985
relation P1376
type Q7275
[ANSWERS] have that administrative territory as their county seat
['Q1431302', 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ?v WHERE { resource:Q80985 property:P1376 ?v . ?v rdf:type ontology:Q7275 }
Marinid dynasty Idrisid dynasty
Marinid dynasty and Idrisid dynasty have that administrative territory as their county seat
Marinid dynasty Idrisid dynasty
action filter_type
action find
entity Fes
relation capital of
type state
['Fes-Saïss Airport', 'capital of', {'concept': 'state'}]
SELECT DISTINCT ?v WHERE { resource:Fes property:capital_of ?v . ?v rdf:type ontology:state }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q16961443
P1376
Q56061
USER
Are Ananthavarappadu the county seat of those states ?
(Q16961443,P1376,Q582861) (Q16961443,P1376,Q431575)
action is_in
entity prev_answer
action find
entity Q16961443
relation P1376
['Q16961443', 'P1376', 'Q582861'] ['Q16961443', 'P1376', 'Q431575']
ASK WHERE { VALUES ( ?f ) { ( resource:Q582861 ) ( resource:Q431575 ) } . resource:Q16961443 property:P1376 ?f }
Ananthavarappadu
action is_in
entity prev_answer
action find
entity Ananthavarappadu
relation capital of
['Ananthavarappadu', 'capital of', 'Marinid dynasty'] ['Ananthavarappadu', 'capital of', 'Idrisid dynasty']
ASK WHERE { VALUES ( ?f ) { ( resource:Marinid_dynasty ) ( resource:Idrisid_dynasty ) } . resource:Ananthavarappadu property:capital_of ?f }
[]
administrative territorial entity
SYSTEM
NO
(Q16961443,P1376,Q582861) (Q16961443,P1376,Q431575)
action is_in
entity prev_answer
action find
entity Q16961443
relation P1376
[ANSWER]
['Q16961443', 'P1376', 'Q582861'] ['Q16961443', 'P1376', 'Q431575']
ASK WHERE { VALUES ( ?f ) { ( resource:Q582861 ) ( resource:Q431575 ) } . resource:Q16961443 property:P1376 ?f }
No
action is_in
entity prev_answer
action find
entity Ananthavarappadu
relation capital of
['Ananthavarappadu', 'capital of', 'Marinid dynasty'] ['Ananthavarappadu', 'capital of', 'Idrisid dynasty']
ASK WHERE { VALUES ( ?f ) { ( resource:Marinid_dynasty ) ( resource:Idrisid_dynasty ) } . resource:Ananthavarappadu property:capital_of ?f }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P194
Q11204 Q7275
USER
Which legislatures are the representative bodies for around 2 states ?
(c(Q7275),P194,c(Q11204))
action approx
action find_reverse_tuple_counts
relation P194
type Q11204
type Q7275
value 2
[{'concept': 'Q7275'}, 'P194', {'concept': 'Q11204'}]
SELECT DISTINCT ?g WHERE { FILTER ( ?n = 2 ) . { SELECT DISTINCT ?g ( COUNT ( ?x ) AS ?n ) WHERE { ?g rdf:type ontology:Q11204 . ?x rdf:type ontology:Q7275 . ?x property:P194 ?g } GROUP BY ?g } }
action approx
action find_reverse_tuple_counts
relation legislative body
type legislature
type state
value 2
[{'concept': 'state'}, 'legislative body', {'concept': 'legislature'}]
SELECT DISTINCT ?g WHERE { FILTER ( ?n = 2 ) . { SELECT DISTINCT ?g ( COUNT ( ?x ) AS ?n ) WHERE { ?g rdf:type ontology:legislature . ?x rdf:type ontology:state . ?x property:legislative_body ?g } GROUP BY ?g } }
[]
legislature state
Q539149 Q497578
SYSTEM
Congress of Deputies, Witenagemot
Q539149 Q497578
(c(Q7275),P194,c(Q11204))
action approx
action find_reverse_tuple_counts
relation P194
type Q11204
type Q7275
value 2
[ANSWERS] are the representative bodies for around 2 states
[{'concept': 'Q7275'}, 'P194', {'concept': 'Q11204'}]
SELECT DISTINCT ?g WHERE { FILTER ( ?n = 2 ) . { SELECT DISTINCT ?g ( COUNT ( ?x ) AS ?n ) WHERE { ?g rdf:type ontology:Q11204 . ?x rdf:type ontology:Q7275 . ?x property:P194 ?g } GROUP BY ?g } }
Congress of Deputies Witenagemot
Congress of Deputies and Witenagemot are the representative bodies for around 2 states
Congress of Deputies Witenagemot
action approx
action find_reverse_tuple_counts
relation legislative body
type legislature
type state
value 2
[{'concept': 'state'}, 'legislative body', {'concept': 'legislature'}]
SELECT DISTINCT ?g WHERE { FILTER ( ?n = 2 ) . { SELECT DISTINCT ?g ( COUNT ( ?x ) AS ?n ) WHERE { ?g rdf:type ontology:legislature . ?x rdf:type ontology:state . ?x property:legislative_body ?g } GROUP BY ?g } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q3119166 Q80985
P17
Q15617994
USER
Which administrative territories do Fes or Koni-Djodjo belong to ?
OR((Q80985,P17,c(Q15617994)), (Q3119166,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q80985
relation P17
action find
entity Q3119166
relation P17
type Q15617994
{'OR': [['Q80985', 'P17', {'concept': 'Q15617994'}], ['Q3119166', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q15617994 . { { resource:Q80985 property:P17 ?v } UNION { resource:Q3119166 property:P17 ?v } } }
Koni-Djodjo Fes
action filter_type
action union
action find
entity Fes
relation country
action find
entity Koni-Djodjo
relation country
type designation for an administrative territorial entity
{'OR': [['Fes', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Koni-Djodjo', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Fes property:country ?v } UNION { resource:Koni-Djodjo property:country ?v } } }
[]
designation for an administrative territorial entity
Q1028 Q970
SYSTEM
Morocco, Comoros
Q1028 Q970
OR((Q80985,P17,c(Q15617994)), (Q3119166,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q80985
relation P17
action find
entity Q3119166
relation P17
type Q15617994
Fes or Koni-Djodjo belong to [ANSWERS]
{'OR': [['Q80985', 'P17', {'concept': 'Q15617994'}], ['Q3119166', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q15617994 . { { resource:Q80985 property:P17 ?v } UNION { resource:Q3119166 property:P17 ?v } } }
Morocco Comoros
Fes or Koni-Djodjo belong to Morocco and Comoros
Morocco Comoros
action filter_type
action union
action find
entity Fes
relation country
action find
entity Koni-Djodjo
relation country
type designation for an administrative territorial entity
{'OR': [['Fes', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Koni-Djodjo', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Fes property:country ?v } UNION { resource:Koni-Djodjo property:country ?v } } }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P17
Q7210356 Q1076486
USER
How many political organizations and sports venues are located in that administrative territory ?
(c(Q7210356),P17,Q970) (c(Q1076486),P17,Q970) (c(Q7210356),P17,Q1028) (c(Q1076486),P17,Q1028) (c(Q7210356),P17,Q970) (c(Q1076486),P17,Q970)
[{'concept': 'Q7210356'}, 'P17', 'Q970'] [{'concept': 'Q1076486'}, 'P17', 'Q970'] [{'concept': 'Q7210356'}, 'P17', 'Q1028'] [{'concept': 'Q1076486'}, 'P17', 'Q1028'] [{'concept': 'Q7210356'}, 'P17', 'Q970'] [{'concept': 'Q1076486'}, 'P17', 'Q970']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:Q6256 resource:Q970 } UNION { ?y property:Q6256 resource:Q970 } UNION { ?z property:Q6256 resource:Q488261 } UNION { ?y property:Q6256 resource:Q488261 } UNION { ?z property:Q6256 resource:Q970 } UNION { ?y property:Q6256 resource:Q970 } } . ?z rdf:type ontology:Q7210356 . ?y rdf:type ontology:Q1076486 }
[{'concept': 'political organization'}, 'country', 'Comoros'] [{'concept': 'sports venue'}, 'country', 'Comoros'] [{'concept': 'political organization'}, 'country', 'Morocco'] [{'concept': 'sports venue'}, 'country', 'Morocco'] [{'concept': 'political organization'}, 'country', 'Comoros'] [{'concept': 'sports venue'}, 'country', 'Comoros']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:country resource:Comoros } UNION { ?y property:country resource:Comoros } UNION { ?z property:country resource:Morocco } UNION { ?y property:country resource:Morocco } UNION { ?z property:country resource:Comoros } UNION { ?y property:country resource:Comoros } } . ?z rdf:type ontology:political_organization . ?y rdf:type ontology:sports_venue }
[]
political organization sports venue
Quantitative|Count|Mult. entity type|Clarification
Q1028
SYSTEM
Did you mean Morocco ?
[ANSWER]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:Q6256 resource:Q970 } UNION { ?y property:Q6256 resource:Q970 } UNION { ?z property:Q6256 resource:Q488261 } UNION { ?y property:Q6256 resource:Q488261 } UNION { ?z property:Q6256 resource:Q970 } UNION { ?y property:Q6256 resource:Q970 } } . ?z rdf:type ontology:Q7210356 . ?y rdf:type ontology:Q1076486 }
Did you mean Morocco ?
Morocco
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:country resource:Comoros } UNION { ?y property:country resource:Comoros } UNION { ?z property:country resource:Morocco } UNION { ?y property:country resource:Morocco } UNION { ?z property:country resource:Comoros } UNION { ?y property:country resource:Comoros } } . ?z rdf:type ontology:political_organization . ?y rdf:type ontology:sports_venue }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Comoros. Could you tell me the answer for that?
(c(Q7210356),P17,Q970) (c(Q1076486),P17,Q970) (c(Q7210356),P17,Q1028) (c(Q1076486),P17,Q1028) (c(Q7210356),P17,Q970) (c(Q1076486),P17,Q970)
Q970
[{'concept': 'Q7210356'}, 'P17', 'Q970'] [{'concept': 'Q1076486'}, 'P17', 'Q970'] [{'concept': 'Q7210356'}, 'P17', 'Q1028'] [{'concept': 'Q1076486'}, 'P17', 'Q1028'] [{'concept': 'Q7210356'}, 'P17', 'Q970'] [{'concept': 'Q1076486'}, 'P17', 'Q970']
[{'concept': 'political organization'}, 'country', 'Comoros'] [{'concept': 'sports venue'}, 'country', 'Comoros'] [{'concept': 'political organization'}, 'country', 'Morocco'] [{'concept': 'sports venue'}, 'country', 'Morocco'] [{'concept': 'political organization'}, 'country', 'Comoros'] [{'concept': 'sports venue'}, 'country', 'Comoros']
[]
SYSTEM
7 political organizations and 1 sports venues
Q20982205 Q20656527 Q20982212 Q20982157 Q12012229 Q20982223 Q20982167 Q5166253
(c(Q7210356),P17,Q970) (c(Q1076486),P17,Q970) (c(Q7210356),P17,Q1028) (c(Q1076486),P17,Q1028) (c(Q7210356),P17,Q970) (c(Q1076486),P17,Q970)
[ANSWER]
[{'concept': 'Q7210356'}, 'P17', 'Q970'] [{'concept': 'Q1076486'}, 'P17', 'Q970'] [{'concept': 'Q7210356'}, 'P17', 'Q1028'] [{'concept': 'Q1076486'}, 'P17', 'Q1028'] [{'concept': 'Q7210356'}, 'P17', 'Q970'] [{'concept': 'Q1076486'}, 'P17', 'Q970']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:Q6256 resource:Q970 } UNION { ?y property:Q6256 resource:Q970 } UNION { ?z property:Q6256 resource:Q488261 } UNION { ?y property:Q6256 resource:Q488261 } UNION { ?z property:Q6256 resource:Q970 } UNION { ?y property:Q6256 resource:Q970 } } . ?z rdf:type ontology:Q7210356 . ?y rdf:type ontology:Q1076486 }
Party for the Comorian Agreement Union of Democrats for Development Rally for an Alternative of Harmonious and Integrated Development Democratic Rally of the Comoros Stade de Moroni Union for the Development of the Comoros Juwa Party Convention for the Renewal of the Comoros
7 political organizations and 1 sports venues
[{'concept': 'political organization'}, 'country', 'Comoros'] [{'concept': 'sports venue'}, 'country', 'Comoros'] [{'concept': 'political organization'}, 'country', 'Morocco'] [{'concept': 'sports venue'}, 'country', 'Morocco'] [{'concept': 'political organization'}, 'country', 'Comoros'] [{'concept': 'sports venue'}, 'country', 'Comoros']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:country resource:Comoros } UNION { ?y property:country resource:Comoros } UNION { ?z property:country resource:Morocco } UNION { ?y property:country resource:Morocco } UNION { ?z property:country resource:Comoros } UNION { ?y property:country resource:Comoros } } . ?z rdf:type ontology:political_organization . ?y rdf:type ontology:sports_venue }
[]