Simple Question (Direct)
Simple Question
Q4776201
P937
Q56061
USER
What is the work location of Antoni Siurana i Zaragoza ?
(Q4776201,P937,c(Q56061))
action filter_type
action find
entity Q4776201
relation P937
type Q56061
['Q4776201', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?r WHERE { resource:Q4776201 property:P937 ?r . ?r rdf:type ontology:Q56061 }
Antoni Siurana i Zaragoza
action filter_type
action find
entity Antoni Siurana i Zaragoza
relation work location
type administrative territorial entity
['Antoni Siurana i Zaragoza', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { resource:Antoni_Siurana_i_Zaragoza property:work_location ?r . ?r rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1492
SYSTEM
Barcelona
Q1492
(Q4776201,P937,c(Q56061))
action filter_type
action find
entity Q4776201
relation P937
type Q56061
The work location of Antoni Siurana i Zaragoza is in [ANSWER]
['Q4776201', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?r WHERE { resource:Q4776201 property:P937 ?r . ?r rdf:type ontology:Q56061 }
Barcelona
The work location of Antoni Siurana i Zaragoza is in Barcelona
Barcelona
action filter_type
action find
entity Antoni Siurana i Zaragoza
relation work location
type administrative territorial entity
['Antoni Siurana i Zaragoza', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { resource:Antoni_Siurana_i_Zaragoza property:work_location ?r . ?r rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q4776201
P27
Q15617994
USER
Which administrative territory is the country of citizenship of that person ?
(Q1492,P27,c(Q15617994))
action filter_type
action find
entity Q4776201
relation P27
type Q15617994
['Q1492', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?d WHERE { resource:Q4776201 property:P27 ?d . ?d rdf:type ontology:Q15617994 }
Antoni Siurana i Zaragoza
action filter_type
action find
entity Antoni Siurana i Zaragoza
relation country of citizenship
type designation for an administrative territorial entity
['Barcelona', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:Antoni_Siurana_i_Zaragoza property:country_of_citizenship ?d . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q29
SYSTEM
Spain
Q29
(Q1492,P27,c(Q15617994))
action filter_type
action find
entity Q4776201
relation P27
type Q15617994
[ANSWER] is the country of citizenship of that person
['Q1492', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?d WHERE { resource:Q4776201 property:P27 ?d . ?d rdf:type ontology:Q15617994 }
Spain
Spain is the country of citizenship of that person
Spain
action filter_type
action find
entity Antoni Siurana i Zaragoza
relation country of citizenship
type designation for an administrative territorial entity
['Barcelona', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:Antoni_Siurana_i_Zaragoza property:country_of_citizenship ?d . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P559
Q56061 Q34442 Q44377
USER
Which administrative territories are the terminus for approximately 1 roads or tunnels ?
(c(Q34442)|c(Q44377),P559,c(Q56061))
action approx
action union
action find_reverse_tuple_counts
relation P559
type Q56061
type Q34442
action find_reverse_tuple_counts
relation P559
type Q56061
type Q44377
value 1
[[{'concept': 'Q34442'}, {'concept': 'Q44377'}], 'P559', {'concept': 'Q56061'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?b ) ?w WHERE { { ?x property:P559 ?w . ?w rdf:type ontology:Q56061 . ?x rdf:type ontology:Q34442 } UNION { ?x property:P559 ?w . ?w rdf:type ontology:Q56061 . ?x rdf:type ontology:Q44377 } } GROUP BY ?w } . FILTER ( ?b = 1 ) }
action approx
action union
action find_reverse_tuple_counts
relation terminus
type administrative territorial entity
type road
action find_reverse_tuple_counts
relation terminus
type administrative territorial entity
type tunnel
value 1
[[{'concept': 'road'}, {'concept': 'tunnel'}], 'terminus', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?b ) ?w WHERE { { ?x property:terminus ?w . ?w rdf:type ontology:administrative_territorial_entity . ?x rdf:type ontology:road } UNION { ?x property:terminus ?w . ?w rdf:type ontology:administrative_territorial_entity . ?x rdf:type ontology:tunnel } } GROUP BY ?w } . FILTER ( ?b = 1 ) }
[]
administrative territorial entity road tunnel
Q1735 Q12439 Q35433
SYSTEM
Innsbruck, Detroit, Saint-Rhémy-en-Bosses
Q3051477 Q3812238 Q375314 Q12439 Q4825403 Q5902931 Q7651719 Q992420 Q7050868 Q5032535 Q35433 Q66208 Q2796951 Q687945 Q782155 Q12714367 Q6820370 Q2703030 Q794802 Q6275457 Q1735 Q1229951 Q634172
(c(Q34442)|c(Q44377),P559,c(Q56061))
action approx
action union
action find_reverse_tuple_counts
relation P559
type Q56061
type Q34442
action find_reverse_tuple_counts
relation P559
type Q56061
type Q44377
value 1
[ANSWERS] are the terminus for approximately 1 roads or tunnels
[[{'concept': 'Q34442'}, {'concept': 'Q44377'}], 'P559', {'concept': 'Q56061'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?b ) ?w WHERE { { ?x property:P559 ?w . ?w rdf:type ontology:Q56061 . ?x rdf:type ontology:Q34442 } UNION { ?x property:P559 ?w . ?w rdf:type ontology:Q56061 . ?x rdf:type ontology:Q44377 } } GROUP BY ?w } . FILTER ( ?b = 1 ) }
Ellewoutsdijk Bronygarth Folkestone Detroit Austrepollen Horda, Norway Svartnes Fjærland Nordrepollen Cann River Saint-Rhémy-en-Bosses Frutigen Cumberland Gap San Bernardino Jarrow Granvin Merritton, Ontario Kilsby Otira Jong, Norway Innsbruck L'Estaque Banihal
Innsbruck, Detroit and Saint-Rhémy-en-Bosses are the terminus for approximately 1 roads or tunnels
Innsbruck Detroit Saint-Rhémy-en-Bosses
action approx
action union
action find_reverse_tuple_counts
relation terminus
type administrative territorial entity
type road
action find_reverse_tuple_counts
relation terminus
type administrative territorial entity
type tunnel
value 1
[[{'concept': 'road'}, {'concept': 'tunnel'}], 'terminus', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?b ) ?w WHERE { { ?x property:terminus ?w . ?w rdf:type ontology:administrative_territorial_entity . ?x rdf:type ontology:road } UNION { ?x property:terminus ?w . ?w rdf:type ontology:administrative_territorial_entity . ?x rdf:type ontology:tunnel } } GROUP BY ?w } . FILTER ( ?b = 1 ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q35433
P19
Q502895
USER
Which person has birthplace at that administrative territory ?
(c(Q502895),P19,Q35433)
action filter_type
action find_reverse
entity Q35433
relation P19
type Q502895
[{'concept': 'Q502895'}, 'P19', 'Q35433']
SELECT DISTINCT ?h WHERE { ?h property:P19 resource:Q35433 . ?h rdf:type ontology:Q502895 }
Saint-Rhémy-en-Bosses
action filter_type
action find_reverse
entity Saint-Rhémy-en-Bosses
relation place of birth
type common name
[{'concept': 'common name'}, 'place of birth', 'Saint-Rhémy-en-Bosses']
SELECT DISTINCT ?h WHERE { ?h property:place_of_birth resource:Saint-Rhémy-en-Bosses . ?h rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q12439
SYSTEM
Did you mean Detroit ?
Q1735 Q12439 Q35433
(c(Q502895),P19,Q1735) (c(Q502895),P19,Q12439) (c(Q502895),P19,Q35433)
[ANSWER]
[{'concept': 'Q502895'}, 'P19', 'Q1735'] [{'concept': 'Q502895'}, 'P19', 'Q12439'] [{'concept': 'Q502895'}, 'P19', 'Q35433']
SELECT DISTINCT ?h WHERE { ?h property:P19 resource:Q35433 . ?h rdf:type ontology:Q502895 }
Innsbruck Detroit Saint-Rhémy-en-Bosses
Did you mean Detroit ?
Detroit
[{'concept': 'common name'}, 'place of birth', 'Innsbruck'] [{'concept': 'common name'}, 'place of birth', 'Detroit'] [{'concept': 'common name'}, 'place of birth', 'Saint-Rhémy-en-Bosses']
SELECT DISTINCT ?h WHERE { ?h property:place_of_birth resource:Saint-Rhémy-en-Bosses . ?h rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
No, I meant Saint-Rhémy-en-Bosses. Could you tell me the answer for that?
(c(Q502895),P19,Q35433)
Q35433
[{'concept': 'Q502895'}, 'P19', 'Q35433']
[{'concept': 'common name'}, 'place of birth', 'Saint-Rhémy-en-Bosses']
[]
Q124856
SYSTEM
Joseph-Samuel Farinet
Q124856
(c(Q502895),P19,Q35433)
action filter_type
action find_reverse
entity Q35433
relation P19
type Q502895
[ANSWER] has birthplace at that administrative territory
[{'concept': 'Q502895'}, 'P19', 'Q35433']
SELECT DISTINCT ?h WHERE { ?h property:P19 resource:Q35433 . ?h rdf:type ontology:Q502895 }
Joseph-Samuel Farinet
Joseph-Samuel Farinet has birthplace at that administrative territory
Joseph-Samuel Farinet
action filter_type
action find_reverse
entity Saint-Rhémy-en-Bosses
relation place of birth
type common name
[{'concept': 'common name'}, 'place of birth', 'Saint-Rhémy-en-Bosses']
SELECT DISTINCT ?h WHERE { ?h property:place_of_birth resource:Saint-Rhémy-en-Bosses . ?h rdf:type ontology:common_name }
[]