Simple Question (Direct)
Simple Question
Q2862007
P39
Q12737077
USER
Which occupation was a position held by Armand de Crussol ?
(Q2862007,P39,c(Q12737077))
action filter_type
action find
entity Q2862007
relation P39
type Q12737077
['Q2862007', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?g WHERE { resource:Q2862007 property:P39 ?g . ?g rdf:type ontology:Q12737077 }
Armand de Crussol
action filter_type
action find
entity Armand de Crussol
relation position held
type occupation
['Armand de Crussol', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?g WHERE { resource:Armand_de_Crussol property:position_held ?g . ?g rdf:type ontology:occupation }
[]
occupation
Q3044918
SYSTEM
member of the French National Assembly
Q3044918
(Q2862007,P39,c(Q12737077))
action filter_type
action find
entity Q2862007
relation P39
type Q12737077
[ANSWER]
['Q2862007', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?g WHERE { resource:Q2862007 property:P39 ?g . ?g rdf:type ontology:Q12737077 }
member of the French National Assembly
member of the French National Assembly
action filter_type
action find
entity Armand de Crussol
relation position held
type occupation
['Armand de Crussol', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?g WHERE { resource:Armand_de_Crussol property:position_held ?g . ?g rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2862007
P19
Q56061
USER
Which administrative territory was that person born in ?
(Q3044918,P19,c(Q56061))
action filter_type
action find
entity Q2862007
relation P19
type Q56061
['Q3044918', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?v WHERE { resource:Q2862007 property:P19 ?v . ?v rdf:type ontology:Q56061 }
Armand de Crussol
action filter_type
action find
entity Armand de Crussol
relation place of birth
type administrative territorial entity
['member of the French\xa0National Assembly', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:Armand_de_Crussol property:place_of_birth ?v . ?v rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q90
SYSTEM
Paris
Q90
(Q3044918,P19,c(Q56061))
action filter_type
action find
entity Q2862007
relation P19
type Q56061
[ANSWER]
['Q3044918', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?v WHERE { resource:Q2862007 property:P19 ?v . ?v rdf:type ontology:Q56061 }
Paris
Paris
action filter_type
action find
entity Armand de Crussol
relation place of birth
type administrative territorial entity
['member of the French\xa0National Assembly', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:Armand_de_Crussol property:place_of_birth ?v . ?v rdf:type ontology:administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q90 Q6046162
P20
Q502895
USER
Did Nubia Martí die in that administrative territory ?
(Q6046162,P20,Q90)
action is_in
entity Q6046162
action find
entity Q90
relation P20
['Q6046162', 'P20', 'Q90']
ASK WHERE { resource:Q90 property:P20 resource:Q6046162 }
Paris Nubia Martí
action is_in
entity Nubia Martí
action find
entity Paris
relation place of death
['Nubia Martí', 'place of death', 'Paris']
ASK WHERE { resource:Paris property:place_of_death resource:Nubia_Martí }
[]
common name
SYSTEM
NO
(Q6046162,P20,Q90)
action is_in
entity Q6046162
action find
entity Q90
relation P20
[ANSWER]
['Q6046162', 'P20', 'Q90']
ASK WHERE { resource:Q90 property:P20 resource:Q6046162 }
No
action is_in
entity Nubia Martí
action find
entity Paris
relation place of death
['Nubia Martí', 'place of death', 'Paris']
ASK WHERE { resource:Paris property:place_of_death resource:Nubia_Martí }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q90
P47
Q20667921
USER
How many french administrative divisions have a shared border with Paris ?
(Q90,P47,c(Q20667921))
action count
action filter_type
action find
entity Q90
relation P47
type Q20667921
['Q90', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?n ) WHERE { resource:Q90 property:P47 ?j . ?j rdf:type ontology:Q20667921 }
Paris
action count
action filter_type
action find
entity Paris
relation shares border with
type type of french administrative division
['Paris', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?n ) WHERE { resource:Paris property:shares_border_with ?j . ?j rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
SYSTEM
29
Q135265 Q208889 Q18102 Q274327 Q253721 Q193899 Q234728 Q205632 Q234743 Q193819 Q193877 Q212274 Q175999 Q193929 Q640102 Q193370 Q201982 Q212793 Q256004 Q48958 Q208943 Q160506 Q166640 Q172455 Q189153 Q135104 Q209086 Q241021 Q609134
(Q90,P47,c(Q20667921))
action count
action filter_type
action find
entity Q90
relation P47
type Q20667921
[ANSWER]
['Q90', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?n ) WHERE { resource:Q90 property:P47 ?j . ?j rdf:type ontology:Q20667921 }
Issy-les-Moulineaux Saint-Ouen Saint-Mandé Saint-Maurice Malakoff Fontenay-sous-Bois Vanves Aubervilliers Puteaux Vincennes Ivry-sur-Seine Nogent-sur-Marne Le Pré-Saint-Gervais Suresnes Gentilly Montreuil Clichy Charenton-le-Pont Les Lilas Neuilly-sur-Seine Bagnolet Saint-Denis Levallois-Perret Boulogne-Billancourt Saint-Cloud Le Kremlin-Bicêtre Pantin Montrouge Joinville-le-Pont
29
action count
action filter_type
action find
entity Paris
relation shares border with
type type of french administrative division
['Paris', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?n ) WHERE { resource:Paris property:shares_border_with ?j . ?j rdf:type ontology:type_of_french_administrative_division }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Incomplete
Q83918
P47
Q20667921
USER
And what about Vielle-Saint-Girons?
(Q83918,P47,c(Q20667921))
action count
action filter_type
action find
entity Q83918
relation P47
type Q20667921
['Q83918', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?a ) WHERE { resource:Q83918 property:P47 ?b . ?b rdf:type ontology:Q20667921 }
Vielle-Saint-Girons
action count
action filter_type
action find
entity Vielle-Saint-Girons
relation shares border with
type type of french administrative division
['Vielle-Saint-Girons', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?a ) WHERE { resource:Vielle-Saint-Girons property:shares_border_with ?b . ?b rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
SYSTEM
5
Q458198 Q741832 Q63015 Q63020 Q189579
(Q83918,P47,c(Q20667921))
action count
action filter_type
action find
entity Q83918
relation P47
type Q20667921
[ANSWER]
['Q83918', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?a ) WHERE { resource:Q83918 property:P47 ?b . ?b rdf:type ontology:Q20667921 }
Léon Moliets-et-Maa Lit-et-Mixe Saint-Michel-Escalus Linxe
5
action count
action filter_type
action find
entity Vielle-Saint-Girons
relation shares border with
type type of french administrative division
['Vielle-Saint-Girons', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?a ) WHERE { resource:Vielle-Saint-Girons property:shares_border_with ?b . ?b rdf:type ontology:type_of_french_administrative_division }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q27619
Q20667921
USER
And how about Varennes-Vauzelles?
(Q27619,P47,c(Q20667921))
action count
action filter_type
action find
entity Q27619
relation P47
type Q20667921
['Q27619', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?h ) WHERE { resource:Q27619 property:P47 ?q . ?q rdf:type ontology:Q20667921 }
Varennes-Vauzelles
action count
action filter_type
action find
entity Varennes-Vauzelles
relation shares border with
type type of french administrative division
['Varennes-Vauzelles', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?h ) WHERE { resource:Varennes-Vauzelles property:shares_border_with ?q . ?q rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
SYSTEM
8
(Q27619,P47,c(Q20667921))
action count
action filter_type
action find
entity Q27619
relation P47
type Q20667921
[ANSWER]
['Q27619', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?h ) WHERE { resource:Q27619 property:P47 ?q . ?q rdf:type ontology:Q20667921 }
8
action count
action filter_type
action find
entity Varennes-Vauzelles
relation shares border with
type type of french administrative division
['Varennes-Vauzelles', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?h ) WHERE { resource:Varennes-Vauzelles property:shares_border_with ?q . ?q rdf:type ontology:type_of_french_administrative_division }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q1343739 Q83918
P27 P17
Q15617994
USER
Which administrative territories are Vielle-Saint-Girons present in or are the countries of citizenship of Enrico Danieli ?
OR((Q83918,P17,c(Q15617994)), (Q1343739,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q83918
relation P17
action find
entity Q1343739
relation P27
type Q15617994
{'OR': [['Q83918', 'P17', {'concept': 'Q15617994'}], ['Q1343739', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Q1343739 property:P27 ?j } UNION { resource:Q83918 property:P17 ?j } } . ?j rdf:type ontology:Q15617994 }
Enrico Danieli Vielle-Saint-Girons
action filter_type
action union
action find
entity Vielle-Saint-Girons
relation country
action find
entity Enrico Danieli
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Vielle-Saint-Girons', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Enrico Danieli', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Enrico_Danieli property:country_of_citizenship ?j } UNION { resource:Vielle-Saint-Girons property:country ?j } } . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142 Q39
SYSTEM
France, Switzerland
Q142 Q39
OR((Q83918,P17,c(Q15617994)), (Q1343739,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q83918
relation P17
action find
entity Q1343739
relation P27
type Q15617994
[ANSWERS]
{'OR': [['Q83918', 'P17', {'concept': 'Q15617994'}], ['Q1343739', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Q1343739 property:P27 ?j } UNION { resource:Q83918 property:P17 ?j } } . ?j rdf:type ontology:Q15617994 }
France Switzerland
France Switzerland
action filter_type
action union
action find
entity Vielle-Saint-Girons
relation country
action find
entity Enrico Danieli
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Vielle-Saint-Girons', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Enrico Danieli', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Enrico_Danieli property:country_of_citizenship ?j } UNION { resource:Vielle-Saint-Girons property:country ?j } } . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q90
P504
Q2235308
USER
What has Paris as its home port ?
(c(Q2235308),P504,Q90)
action filter_type
action find_reverse
entity Q90
relation P504
type Q2235308
[{'concept': 'Q2235308'}, 'P504', 'Q90']
SELECT DISTINCT ?g WHERE { ?g property:P504 resource:Q90 . ?g rdf:type ontology:Q2235308 }
Paris
action filter_type
action find_reverse
entity Paris
relation home port
type ship type
[{'concept': 'ship type'}, 'home port', 'Paris']
SELECT DISTINCT ?g WHERE { ?g property:home_port resource:Paris . ?g rdf:type ontology:ship_type }
[]
ship type
Q2365441
SYSTEM
Le Batofar
Q2365441
(c(Q2235308),P504,Q90)
action filter_type
action find_reverse
entity Q90
relation P504
type Q2235308
[ANSWER]
[{'concept': 'Q2235308'}, 'P504', 'Q90']
SELECT DISTINCT ?g WHERE { ?g property:P504 resource:Q90 . ?g rdf:type ontology:Q2235308 }
Le Batofar
Le Batofar
action filter_type
action find_reverse
entity Paris
relation home port
type ship type
[{'concept': 'ship type'}, 'home port', 'Paris']
SELECT DISTINCT ?g WHERE { ?g property:home_port resource:Paris . ?g rdf:type ontology:ship_type }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q142
P189
Q79529
USER
Which chemical substance was discovered at France ?
(c(Q79529),P189,Q142)
action filter_type
action find_reverse
entity Q142
relation P189
type Q79529
[{'concept': 'Q79529'}, 'P189', 'Q142']
SELECT DISTINCT ?t WHERE { ?t property:P189 resource:Q142 . ?t rdf:type ontology:Q79529 }
France
action filter_type
action find_reverse
entity France
relation location of discovery
type chemical substance
[{'concept': 'chemical substance'}, 'location of discovery', 'France']
SELECT DISTINCT ?t WHERE { ?t property:location_of_discovery resource:France . ?t rdf:type ontology:chemical_substance }
[]
chemical substance
Q671
SYSTEM
francium
Q671
(c(Q79529),P189,Q142)
action filter_type
action find_reverse
entity Q142
relation P189
type Q79529
[ANSWER]
[{'concept': 'Q79529'}, 'P189', 'Q142']
SELECT DISTINCT ?t WHERE { ?t property:P189 resource:Q142 . ?t rdf:type ontology:Q79529 }
francium
francium
action filter_type
action find_reverse
entity France
relation location of discovery
type chemical substance
[{'concept': 'chemical substance'}, 'location of discovery', 'France']
SELECT DISTINCT ?t WHERE { ?t property:location_of_discovery resource:France . ?t rdf:type ontology:chemical_substance }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q142
P36
Q56061
USER
Which administrative territory is called the capital of that administrative territory ?
(Q671,P36,c(Q56061))
action filter_type
action find
entity Q142
relation P36
type Q56061
['Q671', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?c WHERE { resource:Q142 property:P36 ?c . ?c rdf:type ontology:Q56061 }
France
action filter_type
action find
entity France
relation capital
type administrative territorial entity
['francium', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { resource:France property:capital ?c . ?c rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q90
SYSTEM
Paris
Q90
(Q671,P36,c(Q56061))
action filter_type
action find
entity Q142
relation P36
type Q56061
[ANSWER]
['Q671', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?c WHERE { resource:Q142 property:P36 ?c . ?c rdf:type ontology:Q56061 }
Paris
Paris
action filter_type
action find
entity France
relation capital
type administrative territorial entity
['francium', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { resource:France property:capital ?c . ?c rdf:type ontology:administrative_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Indirect
P417
Q502895 Q1445650 Q56061
USER
Which administrative territories are lesser number of people and holidays a patron saint of than that administrative territory ?
(c(Q56061),P417,c(Q502895)|c(Q1445650))
action less
action union
action find_tuple_counts
relation P417
type Q56061
type Q502895
action find_tuple_counts
relation P417
type Q56061
type Q1445650
action count
action filter_multi_types
action find
entity Q90
relation P417
type Q502895
type Q1445650
[{'concept': 'Q56061'}, 'P417', [{'concept': 'Q502895'}, {'concept': 'Q1445650'}]]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?l ) WHERE { resource:Q90 property:P417 ?d . { VALUES ( ?h ) { ( ontology:Q1445650 ) ( ontology:Q502895 ) } . ?d rdf:type ?h } } } . FILTER ( ?k < ?l ) . { SELECT DISTINCT ?e ( COUNT ( ?y ) AS ?k ) WHERE { ?y rdf:type ?m . VALUES ( ?m ) { ( ontology:Q1445650 ) ( ontology:Q502895 ) } } GROUP BY ?e } }
action less
action union
action find_tuple_counts
relation patron saint
type administrative territorial entity
type common name
action find_tuple_counts
relation patron saint
type administrative territorial entity
type holiday
action count
action filter_multi_types
action find
entity Paris
relation patron saint
type common name
type holiday
[{'concept': 'administrative territorial entity'}, 'patron saint', [{'concept': 'common name'}, {'concept': 'holiday'}]]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?l ) WHERE { resource:Paris property:patron_saint ?d . { VALUES ( ?h ) { ( ontology:holiday ) ( ontology:common_name ) } . ?d rdf:type ?h } } } . FILTER ( ?k < ?l ) . { SELECT DISTINCT ?e ( COUNT ( ?y ) AS ?k ) WHERE { ?y rdf:type ?m . VALUES ( ?m ) { ( ontology:holiday ) ( ontology:common_name ) } } GROUP BY ?e } }
[]
common name holiday administrative territorial entity
SYSTEM
33
Q264716 Q12883498 Q54494 Q50057 Q117388 Q6221 Q46718 Q54119 Q81258 Q47074 Q59257 Q4361 Q2914723 Q100129 Q52547 Q116440 Q2284679 Q496890 Q297224 Q259039 Q54556 Q487786 Q100943 Q244193 Q1747381 Q492475 Q334577 Q39493 Q329984 Q47034 Q215080 Q270288 Q102820
(c(Q56061),P417,c(Q502895)|c(Q1445650))
action less
action union
action find_tuple_counts
relation P417
type Q56061
type Q502895
action find_tuple_counts
relation P417
type Q56061
type Q1445650
action count
action filter_multi_types
action find
entity Q90
relation P417
type Q502895
type Q1445650
[ANSWER]
[{'concept': 'Q56061'}, 'P417', [{'concept': 'Q502895'}, {'concept': 'Q1445650'}]]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?l ) WHERE { resource:Q90 property:P417 ?d . { VALUES ( ?h ) { ( ontology:Q1445650 ) ( ontology:Q502895 ) } . ?d rdf:type ?h } } } . FILTER ( ?k < ?l ) . { SELECT DISTINCT ?e ( COUNT ( ?y ) AS ?k ) WHERE { ?y rdf:type ?m . VALUES ( ?m ) { ( ontology:Q1445650 ) ( ontology:Q502895 ) } } GROUP BY ?e } }
Carzano Pano Platres Belvedere di Spinello Cagnano Amiterno Strangolagalli Brescia Carrè San Pedro Padula Aielli Montefortino Curitiba Nemausus Calvenzano Campomaggiore Arpino General Alvear, Mendoza Balestrate Padergnone Giardinello Africo Orihuela Sorbolo Cagno Polykastro Valença Quetzaltenango Cantello Úbeda Espoo Machala Riccò del Golfo di Spezia Nibbiano
33
action less
action union
action find_tuple_counts
relation patron saint
type administrative territorial entity
type common name
action find_tuple_counts
relation patron saint
type administrative territorial entity
type holiday
action count
action filter_multi_types
action find
entity Paris
relation patron saint
type common name
type holiday
[{'concept': 'administrative territorial entity'}, 'patron saint', [{'concept': 'common name'}, {'concept': 'holiday'}]]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?l ) WHERE { resource:Paris property:patron_saint ?d . { VALUES ( ?h ) { ( ontology:holiday ) ( ontology:common_name ) } . ?d rdf:type ?h } } } . FILTER ( ?k < ?l ) . { SELECT DISTINCT ?e ( COUNT ( ?y ) AS ?k ) WHERE { ?y rdf:type ?m . VALUES ( ?m ) { ( ontology:holiday ) ( ontology:common_name ) } } GROUP BY ?e } }
[]