Simple Question (Direct)
Simple Question
Q3903633
P937
Q56061
USER
What is the work location of Pietro Amendola ?
(Q3903633,P937,c(Q56061))
action filter_type
action find
entity Q3903633
relation P937
type Q56061
['Q3903633', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?i WHERE { resource:Q3903633 property:P937 ?i . ?i rdf:type ontology:Q56061 }
Pietro Amendola
action filter_type
action find
entity Pietro Amendola
relation work location
type administrative territorial entity
['Pietro Amendola', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:Pietro_Amendola property:work_location ?i . ?i rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q220
SYSTEM
Rome
Q220
(Q3903633,P937,c(Q56061))
action filter_type
action find
entity Q3903633
relation P937
type Q56061
The work location of Pietro Amendola is in [ANSWER]
['Q3903633', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?i WHERE { resource:Q3903633 property:P937 ?i . ?i rdf:type ontology:Q56061 }
Rome
The work location of Pietro Amendola is in Rome
Rome
action filter_type
action find
entity Pietro Amendola
relation work location
type administrative territorial entity
['Pietro Amendola', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:Pietro_Amendola property:work_location ?i . ?i rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q220
P931
Q62447
USER
Which city do that administrative territory serve ?
(c(Q62447),P931,Q220)
action filter_type
action find_reverse
entity Q220
relation P931
type Q62447
[{'concept': 'Q62447'}, 'P931', 'Q220']
SELECT DISTINCT ?w WHERE { ?w property:P931 resource:Q220 . ?w rdf:type ontology:Q62447 }
Rome
action filter_type
action find_reverse
entity Rome
relation place served by airport
type aerodrome
[{'concept': 'aerodrome'}, 'place served by airport', 'Rome']
SELECT DISTINCT ?w WHERE { ?w property:place_served_by_airport resource:Rome . ?w rdf:type ontology:aerodrome }
[]
aerodrome
Q1729854 Q19101
SYSTEM
Rome Viterbo Airport, Leonardo da Vinci–Fiumicino Airport
Q1729854 Q19101
(c(Q62447),P931,Q220)
action filter_type
action find_reverse
entity Q220
relation P931
type Q62447
That administrative territory serve [ANSWERS]
[{'concept': 'Q62447'}, 'P931', 'Q220']
SELECT DISTINCT ?w WHERE { ?w property:P931 resource:Q220 . ?w rdf:type ontology:Q62447 }
Rome Viterbo Airport Leonardo da Vinci–Fiumicino Airport
That administrative territory serve Rome Viterbo Airport and Leonardo da Vinci–Fiumicino Airport
Rome Viterbo Airport Leonardo da Vinci–Fiumicino Airport
action filter_type
action find_reverse
entity Rome
relation place served by airport
type aerodrome
[{'concept': 'aerodrome'}, 'place served by airport', 'Rome']
SELECT DISTINCT ?w WHERE { ?w property:place_served_by_airport resource:Rome . ?w rdf:type ontology:aerodrome }
[]
Clarification
Simple Question|Single Entity|Indirect
Q1729854
P17
Q15617994
USER
Which administrative territory is that aerodrome a part of ?
(Q1729854,P17,c(Q15617994))
action filter_type
action find
entity Q1729854
relation P17
type Q15617994
['Q1729854', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?i WHERE { resource:Q1729854 property:P17 ?i . ?i rdf:type ontology:Q15617994 }
Rome Viterbo Airport
action filter_type
action find
entity Rome Viterbo Airport
relation country
type designation for an administrative territorial entity
['Rome Viterbo Airport', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:Rome_Viterbo_Airport property:country ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Clarification for simple ques.
Q19101
SYSTEM
Did you mean Leonardo da Vinci–Fiumicino Airport ?
Q1729854 Q19101
(Q1729854,P17,c(Q15617994)) (Q19101,P17,c(Q15617994))
[ANSWER]
['Q1729854', 'P17', {'concept': 'Q15617994'}] ['Q19101', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?i WHERE { resource:Q1729854 property:P17 ?i . ?i rdf:type ontology:Q15617994 }
Rome Viterbo Airport Leonardo da Vinci–Fiumicino Airport
Did you mean Leonardo da Vinci–Fiumicino Airport ?
Leonardo da Vinci–Fiumicino Airport
['Rome Viterbo Airport', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Leonardo da Vinci–Fiumicino Airport', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:Rome_Viterbo_Airport property:country ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
USER
No, I meant Rome Viterbo Airport. Could you tell me the answer for that?
(Q1729854,P17,c(Q15617994))
Q1729854
['Q1729854', 'P17', {'concept': 'Q15617994'}]
['Rome Viterbo Airport', 'country', {'concept': 'designation for an administrative territorial entity'}]
[]
Q38
SYSTEM
Italy
Q38
(Q1729854,P17,c(Q15617994))
action filter_type
action find
entity Q1729854
relation P17
type Q15617994
[ANSWER] is that aerodrome a part of
['Q1729854', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?i WHERE { resource:Q1729854 property:P17 ?i . ?i rdf:type ontology:Q15617994 }
Italy
Italy is that aerodrome a part of
Italy
action filter_type
action find
entity Rome Viterbo Airport
relation country
type designation for an administrative territorial entity
['Rome Viterbo Airport', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:Rome_Viterbo_Airport property:country ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators|Indirect
P138
Q811979 Q17444909
USER
How many architectural structures and astronomical object types have that administrative territory as their toponym ?
(c(Q811979),P138,Q38) (c(Q17444909),P138,Q38) (c(Q811979),P138,Q38) (c(Q17444909),P138,Q38)
action count
action union
action filter_type
action find_reverse
entity Q38
relation P138
type Q811979
action filter_type
action find_reverse
entity Q38
relation P138
type Q17444909
[{'concept': 'Q811979'}, 'P138', 'Q38'] [{'concept': 'Q17444909'}, 'P138', 'Q38'] [{'concept': 'Q811979'}, 'P138', 'Q38'] [{'concept': 'Q17444909'}, 'P138', 'Q38']
SELECT DISTINCT ( COUNT ( ?s ) AS ?w ) WHERE { { ?s rdf:type ontology:Q811979 . ?s property:P138 resource:Q38 } UNION { ?s property:P138 resource:Q38 . ?s rdf:type ontology:Q17444909 } }
action count
action union
action filter_type
action find_reverse
entity Italy
relation named after
type architectural structure
action filter_type
action find_reverse
entity Italy
relation named after
type astronomical object type
[{'concept': 'architectural structure'}, 'named after', 'Italy'] [{'concept': 'astronomical object type'}, 'named after', 'Italy'] [{'concept': 'architectural structure'}, 'named after', 'Italy'] [{'concept': 'astronomical object type'}, 'named after', 'Italy']
SELECT DISTINCT ( COUNT ( ?s ) AS ?w ) WHERE { { ?s rdf:type ontology:architectural_structure . ?s property:named_after resource:Italy } UNION { ?s property:named_after resource:Italy . ?s rdf:type ontology:astronomical_object_type } }
[]
architectural structure astronomical object type
SYSTEM
3 architectural structures and 1 astronomical object types
Q154636 Q2532668 Q1966521 Q6079604
(c(Q811979),P138,Q38) (c(Q17444909),P138,Q38) (c(Q811979),P138,Q38) (c(Q17444909),P138,Q38)
action count
action union
action filter_type
action find_reverse
entity Q38
relation P138
type Q811979
action filter_type
action find_reverse
entity Q38
relation P138
type Q17444909
[ANSWER]
[{'concept': 'Q811979'}, 'P138', 'Q38'] [{'concept': 'Q17444909'}, 'P138', 'Q38'] [{'concept': 'Q811979'}, 'P138', 'Q38'] [{'concept': 'Q17444909'}, 'P138', 'Q38']
SELECT DISTINCT ( COUNT ( ?s ) AS ?w ) WHERE { { ?s rdf:type ontology:Q811979 . ?s property:P138 resource:Q38 } UNION { ?s property:P138 resource:Q38 . ?s rdf:type ontology:Q17444909 } }
477 Italia Plaza Italia, Buenos Aires place d'Italie Plaza Italia
3 architectural structures and 1 astronomical object types
action count
action union
action filter_type
action find_reverse
entity Italy
relation named after
type architectural structure
action filter_type
action find_reverse
entity Italy
relation named after
type astronomical object type
[{'concept': 'architectural structure'}, 'named after', 'Italy'] [{'concept': 'astronomical object type'}, 'named after', 'Italy'] [{'concept': 'architectural structure'}, 'named after', 'Italy'] [{'concept': 'astronomical object type'}, 'named after', 'Italy']
SELECT DISTINCT ( COUNT ( ?s ) AS ?w ) WHERE { { ?s rdf:type ontology:architectural_structure . ?s property:named_after resource:Italy } UNION { ?s property:named_after resource:Italy . ?s rdf:type ontology:astronomical_object_type } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q38
P85
Q7725634
USER
Which is the national anthem of Italy ?
(Q38,P85,c(Q7725634))
action filter_type
action find
entity Q38
relation P85
type Q7725634
['Q38', 'P85', {'concept': 'Q7725634'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q7725634 . resource:Q38 property:P85 ?z }
Italy
action filter_type
action find
entity Italy
relation anthem
type literary work
['Italy', 'anthem', {'concept': 'literary work'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:literary_work . resource:Italy property:anthem ?z }
[]
literary work
Q187
SYSTEM
Il Canto degli Italiani
Q187
(Q38,P85,c(Q7725634))
action filter_type
action find
entity Q38
relation P85
type Q7725634
The national anthem of Italy is the [ANSWER]
['Q38', 'P85', {'concept': 'Q7725634'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q7725634 . resource:Q38 property:P85 ?z }
Il Canto degli Italiani
The national anthem of Italy is the Il Canto degli Italiani
Il Canto degli Italiani
action filter_type
action find
entity Italy
relation anthem
type literary work
['Italy', 'anthem', {'concept': 'literary work'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:literary_work . resource:Italy property:anthem ?z }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q38
P1001
Q2712963
USER
Which abstract nouns have jurisdiction over Italy ?
(c(Q2712963),P1001,Q38)
action filter_type
action find_reverse
entity Q38
relation P1001
type Q2712963
[{'concept': 'Q2712963'}, 'P1001', 'Q38']
SELECT DISTINCT ?f WHERE { ?f property:P1001 resource:Q38 . ?f rdf:type ontology:Q2712963 }
Italy
action filter_type
action find_reverse
entity Italy
relation applies to jurisdiction
type abstract noun
[{'concept': 'abstract noun'}, 'applies to jurisdiction', 'Italy']
SELECT DISTINCT ?f WHERE { ?f property:applies_to_jurisdiction resource:Italy . ?f rdf:type ontology:abstract_noun }
[]
abstract noun
Q3742388 Q15648878
SYSTEM
S.p.A., Società a responsabilità limitata
Q3742388 Q15648878
(c(Q2712963),P1001,Q38)
action filter_type
action find_reverse
entity Q38
relation P1001
type Q2712963
[ANSWERS] have jurisdiction over Italy
[{'concept': 'Q2712963'}, 'P1001', 'Q38']
SELECT DISTINCT ?f WHERE { ?f property:P1001 resource:Q38 . ?f rdf:type ontology:Q2712963 }
S.p.A. Società a responsabilità limitata
S.p.A. and Società a responsabilità limitata have jurisdiction over Italy
S.p.A. Società a responsabilità limitata
action filter_type
action find_reverse
entity Italy
relation applies to jurisdiction
type abstract noun
[{'concept': 'abstract noun'}, 'applies to jurisdiction', 'Italy']
SELECT DISTINCT ?f WHERE { ?f property:applies_to_jurisdiction resource:Italy . ?f rdf:type ontology:abstract_noun }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q3742388 Q15648878
P1001
Q15617994
USER
Which administrative territories apply to jurisdiction of those abstract nouns ?
(Q3742388,P1001,c(Q15617994)) (Q15648878,P1001,c(Q15617994))
action filter_type
action find
entity prev_answer
relation P1001
type Q15617994
['Q3742388', 'P1001', {'concept': 'Q15617994'}] ['Q15648878', 'P1001', {'concept': 'Q15617994'}]
SELECT DISTINCT ?j WHERE { ?e property:P1001 ?j . VALUES ( ?e ) { ( resource:Q3742388 ) ( resource:Q15648878 ) } . ?j rdf:type ontology:Q15617994 }
S.p.A. Società a responsabilità limitata
action filter_type
action find
entity prev_answer
relation applies to jurisdiction
type designation for an administrative territorial entity
['S.p.A.', 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}] ['Società a responsabilità limitata', 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { ?e property:applies_to_jurisdiction ?j . VALUES ( ?e ) { ( resource:S.p.A. ) ( resource:Società_a_responsabilità_limitata ) } . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q38 Q38
SYSTEM
Italy
Q38 Q38
(Q3742388,P1001,c(Q15617994)) (Q15648878,P1001,c(Q15617994))
action filter_type
action find
entity prev_answer
relation P1001
type Q15617994
[ANSWER] and [ANSWER] apply to jurisdiction of those abstract nouns
['Q3742388', 'P1001', {'concept': 'Q15617994'}] ['Q15648878', 'P1001', {'concept': 'Q15617994'}]
SELECT DISTINCT ?j WHERE { ?e property:P1001 ?j . VALUES ( ?e ) { ( resource:Q3742388 ) ( resource:Q15648878 ) } . ?j rdf:type ontology:Q15617994 }
Italy Italy
Italy and Italy apply to jurisdiction of those abstract nouns
Italy Italy
action filter_type
action find
entity prev_answer
relation applies to jurisdiction
type designation for an administrative territorial entity
['S.p.A.', 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}] ['Società a responsabilità limitata', 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { ?e property:applies_to_jurisdiction ?j . VALUES ( ?e ) { ( resource:S.p.A. ) ( resource:Società_a_responsabilità_limitata ) } . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q38
P6
Q502895
USER
Which people are the head of government of Italy ?
(Q38,P6,c(Q502895))
action filter_type
action find
entity Q38
relation P6
type Q502895
['Q38', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?j WHERE { resource:Q38 property:P6 ?j . ?j rdf:type ontology:Q502895 }
Italy
action filter_type
action find
entity Italy
relation head of government
type common name
['Italy', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?j WHERE { resource:Italy property:head_of_government ?j . ?j rdf:type ontology:common_name }
[]
common name
Q47563 Q674957
SYSTEM
Matteo Renzi, Enrico Letta
Q47563 Q674957
(Q38,P6,c(Q502895))
action filter_type
action find
entity Q38
relation P6
type Q502895
[ANSWERS] are the head of government of Italy
['Q38', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?j WHERE { resource:Q38 property:P6 ?j . ?j rdf:type ontology:Q502895 }
Matteo Renzi Enrico Letta
Matteo Renzi and Enrico Letta are the head of government of Italy
Matteo Renzi Enrico Letta
action filter_type
action find
entity Italy
relation head of government
type common name
['Italy', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?j WHERE { resource:Italy property:head_of_government ?j . ?j rdf:type ontology:common_name }
[]
Clarification
Simple Question|Single Entity|Indirect
Q674957
P991
Q1076105
USER
Which general election was that person elected from ?
(c(Q1076105),P991,Q674957)
action filter_type
action find_reverse
entity Q674957
relation P991
type Q1076105
[{'concept': 'Q1076105'}, 'P991', 'Q674957']
SELECT DISTINCT ?p WHERE { ?p property:P991 resource:Q674957 . ?p rdf:type ontology:Q1076105 }
Enrico Letta
action filter_type
action find_reverse
entity Enrico Letta
relation successful candidate
type general election
[{'concept': 'general election'}, 'successful candidate', 'Enrico Letta']
SELECT DISTINCT ?p WHERE { ?p property:successful_candidate resource:Enrico_Letta . ?p rdf:type ontology:general_election }
[]
general election
Clarification for simple ques.
Q47563
SYSTEM
Did you mean Matteo Renzi ?
Q47563 Q674957
(c(Q1076105),P991,Q47563) (c(Q1076105),P991,Q674957)
[ANSWER]
[{'concept': 'Q1076105'}, 'P991', 'Q47563'] [{'concept': 'Q1076105'}, 'P991', 'Q674957']
SELECT DISTINCT ?p WHERE { ?p property:P991 resource:Q674957 . ?p rdf:type ontology:Q1076105 }
Matteo Renzi Enrico Letta
Did you mean Matteo Renzi ?
Matteo Renzi
[{'concept': 'general election'}, 'successful candidate', 'Matteo Renzi'] [{'concept': 'general election'}, 'successful candidate', 'Enrico Letta']
SELECT DISTINCT ?p WHERE { ?p property:successful_candidate resource:Enrico_Letta . ?p rdf:type ontology:general_election }
[]
Simple Question (Coreferenced)
USER
No, I meant Enrico Letta. Could you tell me the answer for that?
(c(Q1076105),P991,Q674957)
Q674957
[{'concept': 'Q1076105'}, 'P991', 'Q674957']
[{'concept': 'general election'}, 'successful candidate', 'Enrico Letta']
[]
Q579144
SYSTEM
Italian general election, 2013
Q579144
(c(Q1076105),P991,Q674957)
action filter_type
action find_reverse
entity Q674957
relation P991
type Q1076105
That person was elected in [ANSWER]
[{'concept': 'Q1076105'}, 'P991', 'Q674957']
SELECT DISTINCT ?p WHERE { ?p property:P991 resource:Q674957 . ?p rdf:type ontology:Q1076105 }
Italian general election, 2013
That person was elected in Italian general election, 2013
Italian general election, 2013
action filter_type
action find_reverse
entity Enrico Letta
relation successful candidate
type general election
[{'concept': 'general election'}, 'successful candidate', 'Enrico Letta']
SELECT DISTINCT ?p WHERE { ?p property:successful_candidate resource:Enrico_Letta . ?p rdf:type ontology:general_election }
[]