Simple Question (Direct)
Simple Question
Q3159804
P19
Q56061
USER
Which administrative territory was Jacques Pradel born at ?
(Q3159804,P19,c(Q56061))
action filter_type
action find
entity Q3159804
relation P19
type Q56061
['Q3159804', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?h WHERE { resource:Q3159804 property:P19 ?h . ?h rdf:type ontology:Q56061 }
Jacques Pradel
action filter_type
action find
entity Jacques Pradel
relation place of birth
type administrative territorial entity
['Jacques Pradel', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:Jacques_Pradel property:place_of_birth ?h . ?h rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q90
SYSTEM
Paris
Q90
(Q3159804,P19,c(Q56061))
action filter_type
action find
entity Q3159804
relation P19
type Q56061
Jacques Pradel was born [ANSWER]
['Q3159804', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?h WHERE { resource:Q3159804 property:P19 ?h . ?h rdf:type ontology:Q56061 }
Paris
Jacques Pradel was born Paris
Paris
action filter_type
action find
entity Jacques Pradel
relation place of birth
type administrative territorial entity
['Jacques Pradel', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:Jacques_Pradel property:place_of_birth ?h . ?h rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3159804
P21
Q290
USER
Which sex does that person possess ?
(Q90,P21,c(Q290))
action filter_type
action find
entity Q3159804
relation P21
type Q290
['Q90', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q290 . resource:Q3159804 property:P21 ?o }
Jacques Pradel
action filter_type
action find
entity Jacques Pradel
relation gender
type sex
['Paris', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:sex . resource:Jacques_Pradel property:gender ?o }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q90,P21,c(Q290))
action filter_type
action find
entity Q3159804
relation P21
type Q290
That person possesses a [ANSWER]
['Q90', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q290 . resource:Q3159804 property:P21 ?o }
male
That person possesses a male
male
action filter_type
action find
entity Jacques Pradel
relation gender
type sex
['Paris', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:sex . resource:Jacques_Pradel property:gender ?o }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q1644456 Q90
P6
Q502895
USER
Which people are Paris or Moral de Calatrava the head of goverment of ?
OR((Q90,P6,c(Q502895)), (Q1644456,P6,c(Q502895)))
action filter_type
action union
action find
entity Q90
relation P6
action find
entity Q1644456
relation P6
type Q502895
{'OR': [['Q90', 'P6', {'concept': 'Q502895'}], ['Q1644456', 'P6', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?v WHERE { { VALUES ( ?o ) { ( resource:Q1644456 ) ( resource:Q90 ) } . ?o property:P6 ?v } . ?v rdf:type ontology:Q502895 }
Moral de Calatrava Paris
action filter_type
action union
action find
entity Paris
relation head of government
action find
entity Moral de Calatrava
relation head of government
type common name
{'OR': [['Paris', 'head of government', {'concept': 'common name'}], ['Moral de Calatrava', 'head of government', {'concept': 'common name'}]]}
SELECT DISTINCT ?v WHERE { { VALUES ( ?o ) { ( resource:Moral_de_Calatrava ) ( resource:Paris ) } . ?o property:head_of_government ?v } . ?v rdf:type ontology:common_name }
[]
common name
Q656015 Q14068723 Q1685859 Q1685301 Q289303 Q1986521 Q2596877 Q3131449 Q2105 Q677730
SYSTEM
Some of them are Philibert Borie, Manuel Torres Estornell, Jean Tiberi, Jean Sylvain Bailly, Étienne Arago, Nicolas Chambon, René Boucher, Henri Lefèvre d'Ormesson, Jacques Chirac, Armand Marrast
Q1986521 Q2105 Q14068723 Q289303 Q1685859 Q256294 Q1685102 Q601266 Q2596877 Q677730 Q959708 Q3131449 Q947901 Q2851133 Q656015 Q1684642 Q1685301
OR((Q90,P6,c(Q502895)), (Q1644456,P6,c(Q502895)))
action filter_type
action union
action find
entity Q90
relation P6
action find
entity Q1644456
relation P6
type Q502895
[ANSWERS] are Paris or Moral de Calatrava the head of goverment of
{'OR': [['Q90', 'P6', {'concept': 'Q502895'}], ['Q1644456', 'P6', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?v WHERE { { VALUES ( ?o ) { ( resource:Q1644456 ) ( resource:Q90 ) } . ?o property:P6 ?v } . ?v rdf:type ontology:Q502895 }
Nicolas Chambon Jacques Chirac Manuel Torres Estornell Étienne Arago Jean Tiberi Bertrand Delanoë Jean-Nicolas Pache Louis-Antoine Garnier-Pagès René Boucher Armand Marrast Jules Ferry Henri Lefèvre d'Ormesson Jérôme Pétion de Villeneuve Anne Hidalgo Philibert Borie Jean-Baptiste Fleuriot-Lescot Jean Sylvain Bailly
Philibert Borie, Manuel Torres Estornell, Jean Tiberi, Jean Sylvain Bailly, Étienne Arago, Nicolas Chambon, René Boucher, Henri Lefèvre d'Ormesson, Jacques Chirac and Armand Marrast are Paris or Moral de Calatrava the head of goverment of
Philibert Borie Manuel Torres Estornell Jean Tiberi Jean Sylvain Bailly Étienne Arago Nicolas Chambon René Boucher Henri Lefèvre d'Ormesson Jacques Chirac Armand Marrast
action filter_type
action union
action find
entity Paris
relation head of government
action find
entity Moral de Calatrava
relation head of government
type common name
{'OR': [['Paris', 'head of government', {'concept': 'common name'}], ['Moral de Calatrava', 'head of government', {'concept': 'common name'}]]}
SELECT DISTINCT ?v WHERE { { VALUES ( ?o ) { ( resource:Moral_de_Calatrava ) ( resource:Paris ) } . ?o property:head_of_government ?v } . ?v rdf:type ontology:common_name }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P559
Q56061 Q628179 Q83620
USER
Which administrative territories are the endpoints for max number of trails or thoroughfares ?
(c(Q628179)|c(Q83620),P559,c(Q56061))
action argmax
action union
action find_reverse_tuple_counts
relation P559
type Q56061
type Q628179
action find_reverse_tuple_counts
relation P559
type Q56061
type Q83620
[[{'concept': 'Q628179'}, {'concept': 'Q83620'}], 'P559', {'concept': 'Q56061'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( MAX ( ?n ) AS ?o ) { SELECT DISTINCT ( COUNT ( ?u ) AS ?n ) ?m WHERE { ?u rdf:type ?q . VALUES ( ?q ) { ( ontology:Q83620 ) ( ontology:Q628179 ) } } GROUP BY ?m } } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?z ) ?e WHERE { { ?t property:P559 ?e . ?t rdf:type ontology:Q628179 . ?e rdf:type ontology:Q56061 } UNION { ?e rdf:type ontology:Q56061 . ?t rdf:type ontology:Q83620 . ?t property:P559 ?e } } GROUP BY ?e } . FILTER ( ?z = ?o ) }
action argmax
action union
action find_reverse_tuple_counts
relation terminus
type administrative territorial entity
type trail
action find_reverse_tuple_counts
relation terminus
type administrative territorial entity
type thoroughfare
[[{'concept': 'trail'}, {'concept': 'thoroughfare'}], 'terminus', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( MAX ( ?n ) AS ?o ) { SELECT DISTINCT ( COUNT ( ?u ) AS ?n ) ?m WHERE { ?u rdf:type ?q . VALUES ( ?q ) { ( ontology:thoroughfare ) ( ontology:trail ) } } GROUP BY ?m } } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?z ) ?e WHERE { { ?t property:terminus ?e . ?t rdf:type ontology:trail . ?e rdf:type ontology:administrative_territorial_entity } UNION { ?e rdf:type ontology:administrative_territorial_entity . ?t rdf:type ontology:thoroughfare . ?t property:terminus ?e } } GROUP BY ?e } . FILTER ( ?z = ?o ) }
[]
administrative territorial entity trail thoroughfare
Q12892 Q172157 Q3001
SYSTEM
Antwerp, Winchester, Paramaribo
Q172157 Q3001 Q1318695 Q12892
(c(Q628179)|c(Q83620),P559,c(Q56061))
action argmax
action union
action find_reverse_tuple_counts
relation P559
type Q56061
type Q628179
action find_reverse_tuple_counts
relation P559
type Q56061
type Q83620
[ANSWERS] are the endpoints for max number of trails or thoroughfares
[[{'concept': 'Q628179'}, {'concept': 'Q83620'}], 'P559', {'concept': 'Q56061'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( MAX ( ?n ) AS ?o ) { SELECT DISTINCT ( COUNT ( ?u ) AS ?n ) ?m WHERE { ?u rdf:type ?q . VALUES ( ?q ) { ( ontology:Q83620 ) ( ontology:Q628179 ) } } GROUP BY ?m } } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?z ) ?e WHERE { { ?t property:P559 ?e . ?t rdf:type ontology:Q628179 . ?e rdf:type ontology:Q56061 } UNION { ?e rdf:type ontology:Q56061 . ?t rdf:type ontology:Q83620 . ?t property:P559 ?e } } GROUP BY ?e } . FILTER ( ?z = ?o ) }
Winchester Paramaribo Apoera Antwerp
Antwerp, Winchester and Paramaribo are the endpoints for max number of trails or thoroughfares
Antwerp Winchester Paramaribo
action argmax
action union
action find_reverse_tuple_counts
relation terminus
type administrative territorial entity
type trail
action find_reverse_tuple_counts
relation terminus
type administrative territorial entity
type thoroughfare
[[{'concept': 'trail'}, {'concept': 'thoroughfare'}], 'terminus', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( MAX ( ?n ) AS ?o ) { SELECT DISTINCT ( COUNT ( ?u ) AS ?n ) ?m WHERE { ?u rdf:type ?q . VALUES ( ?q ) { ( ontology:thoroughfare ) ( ontology:trail ) } } GROUP BY ?m } } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?z ) ?e WHERE { { ?t property:terminus ?e . ?t rdf:type ontology:trail . ?e rdf:type ontology:administrative_territorial_entity } UNION { ?e rdf:type ontology:administrative_territorial_entity . ?t rdf:type ontology:thoroughfare . ?t property:terminus ?e } } GROUP BY ?e } . FILTER ( ?z = ?o ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q12892
P190
Q20667921 Q56061
USER
How many french administrative divisions or administrative territories are twin towns of Antwerp ?
(Q12892,P190,c(Q20667921)) (Q12892,P190,c(Q56061))
action count
action union
action filter_type
action find
entity Q12892
relation P190
type Q20667921
action filter_type
action find
entity Q12892
relation P190
type Q56061
['Q12892', 'P190', {'concept': 'Q20667921'}] ['Q12892', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?m ) WHERE { VALUES ( ?q ) { ( ontology:Q56061 ) ( ontology:Q20667921 ) } . ?i rdf:type ?q }
Antwerp
action count
action union
action filter_type
action find
entity Antwerp
relation sister city
type type of french administrative division
action filter_type
action find
entity Antwerp
relation sister city
type administrative territorial entity
['Antwerp', 'sister city', {'concept': 'type of french administrative division'}] ['Antwerp', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?m ) WHERE { VALUES ( ?q ) { ( ontology:administrative_territorial_entity ) ( ontology:type_of_french_administrative_division ) } . ?i rdf:type ?q }
[]
type of french administrative division administrative territorial entity
SYSTEM
9
Q2861 Q41621 Q8686 Q585 Q5468 Q3001 Q1492 Q5465 Q79815
(Q12892,P190,c(Q20667921)) (Q12892,P190,c(Q56061))
action count
action union
action filter_type
action find
entity Q12892
relation P190
type Q20667921
action filter_type
action find
entity Q12892
relation P190
type Q56061
[ANSWER]
['Q12892', 'P190', {'concept': 'Q20667921'}] ['Q12892', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?m ) WHERE { VALUES ( ?q ) { ( ontology:Q56061 ) ( ontology:Q20667921 ) } . ?i rdf:type ?q }
Rostock Haifa Shanghai Oslo Durban Paramaribo Barcelona Cape Town Mulhouse
9
action count
action union
action filter_type
action find
entity Antwerp
relation sister city
type type of french administrative division
action filter_type
action find
entity Antwerp
relation sister city
type administrative territorial entity
['Antwerp', 'sister city', {'concept': 'type of french administrative division'}] ['Antwerp', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?m ) WHERE { VALUES ( ?q ) { ( ontology:administrative_territorial_entity ) ( ontology:type_of_french_administrative_division ) } . ?i rdf:type ?q }
[]