Simple Question (Direct)
Simple Question
Q3751661
P641
Q349
USER
What did Franco Viviani participate in ?
(Q3751661,P641,c(Q349))
action filter_type
action find
entity Q3751661
relation P641
type Q349
['Q3751661', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q349 . resource:Q3751661 property:P641 ?n }
Franco Viviani
action filter_type
action find
entity Franco Viviani
relation sport
type sport
['Franco Viviani', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:sport . resource:Franco_Viviani property:sport ?n }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q3751661,P641,c(Q349))
action filter_type
action find
entity Q3751661
relation P641
type Q349
Franco Viviani participated in [ANSWER]
['Q3751661', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q349 . resource:Q3751661 property:P641 ?n }
association football
Franco Viviani participated in association football
association football
action filter_type
action find
entity Franco Viviani
relation sport
type sport
['Franco Viviani', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:sport . resource:Franco_Viviani property:sport ?n }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3751661
P20
Q56061
USER
Which administrative territory is the place of death of that person ?
(Q2736,P20,c(Q56061))
action filter_type
action find
entity Q3751661
relation P20
type Q56061
['Q2736', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?z WHERE { resource:Q3751661 property:P20 ?z . ?z rdf:type ontology:Q56061 }
Franco Viviani
action filter_type
action find
entity Franco Viviani
relation place of death
type administrative territorial entity
['association football', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { resource:Franco_Viviani property:place_of_death ?z . ?z rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1449
SYSTEM
Genoa
Q1449
(Q2736,P20,c(Q56061))
action filter_type
action find
entity Q3751661
relation P20
type Q56061
[ANSWER] is the place of death of that person
['Q2736', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?z WHERE { resource:Q3751661 property:P20 ?z . ?z rdf:type ontology:Q56061 }
Genoa
Genoa is the place of death of that person
Genoa
action filter_type
action find
entity Franco Viviani
relation place of death
type administrative territorial entity
['association football', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { resource:Franco_Viviani property:place_of_death ?z . ?z rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Indirect
P47
Q15617994
USER
How many administrative territories have a shared border with that administrative territory ?
(Q1449,P47,c(Q15617994))
action count
action filter_type
action find
entity Q1449
relation P47
type Q15617994
['Q1449', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?y ) WHERE { ?i rdf:type ontology:Q15617994 . resource:Q1449 property:P47 ?i }
action count
action filter_type
action find
entity Genoa
relation shares border with
type designation for an administrative territorial entity
['Genoa', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?y ) WHERE { ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Genoa property:shares_border_with ?i }
[]
designation for an administrative territorial entity
SYSTEM
16
Q17287 Q265257 Q265528 Q265483 Q265284 Q265498 Q266630 Q266592 Q271341 Q266272 Q265514 Q265311 Q271225 Q266259 Q265616 Q266283
(Q1449,P47,c(Q15617994))
action count
action filter_type
action find
entity Q1449
relation P47
type Q15617994
[ANSWER]
['Q1449', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?y ) WHERE { ?i rdf:type ontology:Q15617994 . resource:Q1449 property:P47 ?i }
Bosio Arenzano Serra Riccò Campomorone Mele Ceranesi Sori, Liguria Bogliasco Urbe Bargagli Mignanego Masone Sassello Tiglieto Montoggio Davagna
16
action count
action filter_type
action find
entity Genoa
relation shares border with
type designation for an administrative territorial entity
['Genoa', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?y ) WHERE { ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Genoa property:shares_border_with ?i }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1449
P931
Q62447
USER
Which city does Genoa serve ?
(c(Q62447),P931,Q1449)
action filter_type
action find_reverse
entity Q1449
relation P931
type Q62447
[{'concept': 'Q62447'}, 'P931', 'Q1449']
SELECT DISTINCT ?n WHERE { ?n property:P931 resource:Q1449 . ?n rdf:type ontology:Q62447 }
Genoa
action filter_type
action find_reverse
entity Genoa
relation place served by airport
type aerodrome
[{'concept': 'aerodrome'}, 'place served by airport', 'Genoa']
SELECT DISTINCT ?n WHERE { ?n property:place_served_by_airport resource:Genoa . ?n rdf:type ontology:aerodrome }
[]
aerodrome
Q1431383
SYSTEM
Genoa Cristoforo Colombo Airport
Q1431383
(c(Q62447),P931,Q1449)
action filter_type
action find_reverse
entity Q1449
relation P931
type Q62447
Genoa serves [ANSWER]
[{'concept': 'Q62447'}, 'P931', 'Q1449']
SELECT DISTINCT ?n WHERE { ?n property:P931 resource:Q1449 . ?n rdf:type ontology:Q62447 }
Genoa Cristoforo Colombo Airport
Genoa serves Genoa Cristoforo Colombo Airport
Genoa Cristoforo Colombo Airport
action filter_type
action find_reverse
entity Genoa
relation place served by airport
type aerodrome
[{'concept': 'aerodrome'}, 'place served by airport', 'Genoa']
SELECT DISTINCT ?n WHERE { ?n property:place_served_by_airport resource:Genoa . ?n rdf:type ontology:aerodrome }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1449
P190
Q515
USER
Which cities are the sister cities of Genoa ?
(Q1449,P190,c(Q515))
action filter_type
action find
entity Q1449
relation P190
type Q515
['Q1449', 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q515 . resource:Q1449 property:P190 ?r }
Genoa
action filter_type
action find
entity Genoa
relation sister city
type city
['Genoa', 'sister city', {'concept': 'city'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:city . resource:Genoa property:sister_city ?r }
[]
city
Q23482 Q1486 Q57948
SYSTEM
Marseille, Buenos Aires, Aue
Q23482 Q1486 Q57948
(Q1449,P190,c(Q515))
action filter_type
action find
entity Q1449
relation P190
type Q515
[ANSWERS] are the sister cities of Genoa
['Q1449', 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q515 . resource:Q1449 property:P190 ?r }
Marseille Buenos Aires Aue
Marseille, Buenos Aires and Aue are the sister cities of Genoa
Marseille Buenos Aires Aue
action filter_type
action find
entity Genoa
relation sister city
type city
['Genoa', 'sister city', {'concept': 'city'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:city . resource:Genoa property:sister_city ?r }
[]
Simple Question (Ellipsis)
Incomplete|object parent is changed, subject and predicate remain same
Q1449
Q15617994
USER
And which administrative territory?
(Q1449,P190,c(Q15617994))
action filter_type
action find
entity Q1449
relation P190
type Q15617994
['Q1449', 'P190', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { resource:Q1449 property:P190 ?y . ?y rdf:type ontology:Q15617994 }
Genoa
action filter_type
action find
entity Genoa
relation sister city
type designation for an administrative territorial entity
['Genoa', 'sister city', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { resource:Genoa property:sister_city ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q52337 Q17244
SYSTEM
Tursi, Acqui Terme
Q52337 Q17244
(Q1449,P190,c(Q15617994))
action filter_type
action find
entity Q1449
relation P190
type Q15617994
[ANSWERS]
['Q1449', 'P190', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { resource:Q1449 property:P190 ?y . ?y rdf:type ontology:Q15617994 }
Tursi Acqui Terme
Tursi Acqui Terme
action filter_type
action find
entity Genoa
relation sister city
type designation for an administrative territorial entity
['Genoa', 'sister city', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { resource:Genoa property:sister_city ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P159
Q515 Q895526 Q874405
USER
How many cities are the headquarter locations of atleast 7 authority organs and social groups ?
(c(Q895526)|c(Q874405),P159,c(Q515))
action count
action atleast
action union
action find_reverse_tuple_counts
relation P159
type Q515
type Q895526
action find_reverse_tuple_counts
relation P159
type Q515
type Q874405
value 7
[[{'concept': 'Q895526'}, {'concept': 'Q874405'}], 'P159', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?y ) WHERE { FILTER ( ?q >= 7 ) . { SELECT DISTINCT ( COUNT ( ?z ) AS ?q ) ?t WHERE { { ?z property:P159 ?t . ?t rdf:type ontology:Q515 . ?z rdf:type ontology:Q895526 } UNION { ?z rdf:type ontology:Q874405 . ?t rdf:type ontology:Q515 . ?z property:P159 ?t } } GROUP BY ?t } }
action count
action atleast
action union
action find_reverse_tuple_counts
relation headquarters location
type city
type authority organ
action find_reverse_tuple_counts
relation headquarters location
type city
type social group
value 7
[[{'concept': 'authority organ'}, {'concept': 'social group'}], 'headquarters location', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?y ) WHERE { FILTER ( ?q >= 7 ) . { SELECT DISTINCT ( COUNT ( ?z ) AS ?q ) ?t WHERE { { ?z property:headquarters_location ?t . ?t rdf:type ontology:city . ?z rdf:type ontology:authority_organ } UNION { ?z rdf:type ontology:social_group . ?t rdf:type ontology:city . ?z property:headquarters_location ?t } } GROUP BY ?t } }
[]
city authority organ social group
SYSTEM
18
Q3870 Q3692 Q19689 Q1899 Q1486 Q1362 Q1519 Q8684 Q23661 Q1858 Q2119 Q2844 Q1865 Q1355 Q1761 Q3616 Q1533 Q1530
(c(Q895526)|c(Q874405),P159,c(Q515))
action count
action atleast
action union
action find_reverse_tuple_counts
relation P159
type Q515
type Q895526
action find_reverse_tuple_counts
relation P159
type Q515
type Q874405
value 7
[ANSWER]
[[{'concept': 'Q895526'}, {'concept': 'Q874405'}], 'P159', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?y ) WHERE { FILTER ( ?q >= 7 ) . { SELECT DISTINCT ( COUNT ( ?z ) AS ?q ) ?t WHERE { { ?z property:P159 ?t . ?t rdf:type ontology:Q515 . ?z rdf:type ontology:Q895526 } UNION { ?z rdf:type ontology:Q874405 . ?t rdf:type ontology:Q515 . ?z property:P159 ?t } } GROUP BY ?t } }
Nairobi Riyadh Tirana Kyiv Buenos Aires Islamabad Abu Dhabi Seoul Wellington Hanoi Mannheim Brasília Kuala Lumpur Bangalore Dublin Tehran Caracas Baghdad
18
action count
action atleast
action union
action find_reverse_tuple_counts
relation headquarters location
type city
type authority organ
action find_reverse_tuple_counts
relation headquarters location
type city
type social group
value 7
[[{'concept': 'authority organ'}, {'concept': 'social group'}], 'headquarters location', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?y ) WHERE { FILTER ( ?q >= 7 ) . { SELECT DISTINCT ( COUNT ( ?z ) AS ?q ) ?t WHERE { { ?z property:headquarters_location ?t . ?t rdf:type ontology:city . ?z rdf:type ontology:authority_organ } UNION { ?z rdf:type ontology:social_group . ?t rdf:type ontology:city . ?z property:headquarters_location ?t } } GROUP BY ?t } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q10197 Q17244
P47 P17
Q15617994
USER
Which administrative territories are Acqui Terme a part of or share the border with Pomaretto ?
OR((Q17244,P17,c(Q15617994)), (Q10197,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q17244
relation P17
action find
entity Q10197
relation P47
type Q15617994
{'OR': [['Q17244', 'P17', {'concept': 'Q15617994'}], ['Q10197', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Q17244 property:P17 ?f } UNION { resource:Q10197 property:P47 ?f } } . ?f rdf:type ontology:Q15617994 }
Pomaretto Acqui Terme
action filter_type
action union
action find
entity Acqui Terme
relation country
action find
entity Pomaretto
relation shares border with
type designation for an administrative territorial entity
{'OR': [['Acqui Terme', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Pomaretto', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Acqui_Terme property:country ?f } UNION { resource:Pomaretto property:shares_border_with ?f } } . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q9551 Q9555 Q10205 Q9403 Q38
SYSTEM
Perosa Argentina, Perrero, Pramollo, Inverso Pinasca, Italy
Q9551 Q9555 Q10205 Q9403 Q38
OR((Q17244,P17,c(Q15617994)), (Q10197,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q17244
relation P17
action find
entity Q10197
relation P47
type Q15617994
[ANSWERS] are Acqui Terme a part of or share the border with Pomaretto
{'OR': [['Q17244', 'P17', {'concept': 'Q15617994'}], ['Q10197', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Q17244 property:P17 ?f } UNION { resource:Q10197 property:P47 ?f } } . ?f rdf:type ontology:Q15617994 }
Perosa Argentina Perrero Pramollo Inverso Pinasca Italy
Perosa Argentina, Perrero, Pramollo, Inverso Pinasca and Italy are Acqui Terme a part of or share the border with Pomaretto
Perosa Argentina Perrero Pramollo Inverso Pinasca Italy
action filter_type
action union
action find
entity Acqui Terme
relation country
action find
entity Pomaretto
relation shares border with
type designation for an administrative territorial entity
{'OR': [['Acqui Terme', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Pomaretto', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Acqui_Terme property:country ?f } UNION { resource:Pomaretto property:shares_border_with ?f } } . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P1001
Q15617994 Q1292279 Q35798
USER
How many administrative territories come under the supervision of around 12 political borders or executive branches ?
(c(Q1292279)|c(Q35798),P1001,c(Q15617994))
action count
action approx
action union
action find_reverse_tuple_counts
relation P1001
type Q15617994
type Q1292279
action find_reverse_tuple_counts
relation P1001
type Q15617994
type Q35798
value 12
[[{'concept': 'Q1292279'}, {'concept': 'Q35798'}], 'P1001', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?p ) WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?y ) ?s WHERE { { ?l property:P1001 ?s . ?s rdf:type ontology:Q15617994 . ?l rdf:type ontology:Q1292279 } UNION { ?l property:P1001 ?s . ?s rdf:type ontology:Q15617994 . ?l rdf:type ontology:Q35798 } } GROUP BY ?s } . FILTER ( ?y = 12 ) }
action count
action approx
action union
action find_reverse_tuple_counts
relation applies to jurisdiction
type designation for an administrative territorial entity
type political border
action find_reverse_tuple_counts
relation applies to jurisdiction
type designation for an administrative territorial entity
type executive branch
value 12
[[{'concept': 'political border'}, {'concept': 'executive branch'}], 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?p ) WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?y ) ?s WHERE { { ?l property:applies_to_jurisdiction ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?l rdf:type ontology:political_border } UNION { ?l property:applies_to_jurisdiction ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?l rdf:type ontology:executive_branch } } GROUP BY ?s } . FILTER ( ?y = 12 ) }
[]
designation for an administrative territorial entity political border executive branch
SYSTEM
23
Q262 Q148 Q717 Q252 Q403 Q43 Q155 Q794 Q739 Q33 Q30 Q924 Q36 Q38 Q851 Q1049 Q783 Q1029 Q974 Q212 Q858 Q1016 Q953
(c(Q1292279)|c(Q35798),P1001,c(Q15617994))
action count
action approx
action union
action find_reverse_tuple_counts
relation P1001
type Q15617994
type Q1292279
action find_reverse_tuple_counts
relation P1001
type Q15617994
type Q35798
value 12
[ANSWER]
[[{'concept': 'Q1292279'}, {'concept': 'Q35798'}], 'P1001', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?p ) WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?y ) ?s WHERE { { ?l property:P1001 ?s . ?s rdf:type ontology:Q15617994 . ?l rdf:type ontology:Q1292279 } UNION { ?l property:P1001 ?s . ?s rdf:type ontology:Q15617994 . ?l rdf:type ontology:Q35798 } } GROUP BY ?s } . FILTER ( ?y = 12 ) }
Algeria People's Republic of China Venezuela Indonesia Serbia Turkey Brazil Iran Colombia Finland United States of America Tanzania Poland Italy Saudi Arabia Sudan Honduras Mozambique Democratic Republic of the Congo Ukraine Syria Libya Zambia
23
action count
action approx
action union
action find_reverse_tuple_counts
relation applies to jurisdiction
type designation for an administrative territorial entity
type political border
action find_reverse_tuple_counts
relation applies to jurisdiction
type designation for an administrative territorial entity
type executive branch
value 12
[[{'concept': 'political border'}, {'concept': 'executive branch'}], 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?p ) WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?y ) ?s WHERE { { ?l property:applies_to_jurisdiction ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?l rdf:type ontology:political_border } UNION { ?l property:applies_to_jurisdiction ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?l rdf:type ontology:executive_branch } } GROUP BY ?s } . FILTER ( ?y = 12 ) }
[]