Simple Question (Direct)
Simple Question
Q3134496
P108
Q1002697
USER
Which periodical literature is the employer of Hervé Gattegno ?
(Q3134496,P108,c(Q1002697))
action filter_type
action find
entity Q3134496
relation P108
type Q1002697
['Q3134496', 'P108', {'concept': 'Q1002697'}]
SELECT DISTINCT ?d WHERE { resource:Q3134496 property:P108 ?d . ?d rdf:type ontology:Q1002697 }
Hervé Gattegno
action filter_type
action find
entity Hervé Gattegno
relation employer
type periodical literature
['Hervé Gattegno', 'employer', {'concept': 'periodical literature'}]
SELECT DISTINCT ?d WHERE { resource:Hervé_Gattegno property:employer ?d . ?d rdf:type ontology:periodical_literature }
[]
periodical literature
Q501461
SYSTEM
Le Journal du Dimanche
Q501461
(Q3134496,P108,c(Q1002697))
action filter_type
action find
entity Q3134496
relation P108
type Q1002697
[ANSWER] is the employer of Hervé Gattegno
['Q3134496', 'P108', {'concept': 'Q1002697'}]
SELECT DISTINCT ?d WHERE { resource:Q3134496 property:P108 ?d . ?d rdf:type ontology:Q1002697 }
Le Journal du Dimanche
Le Journal du Dimanche is the employer of Hervé Gattegno
Le Journal du Dimanche
action filter_type
action find
entity Hervé Gattegno
relation employer
type periodical literature
['Hervé Gattegno', 'employer', {'concept': 'periodical literature'}]
SELECT DISTINCT ?d WHERE { resource:Hervé_Gattegno property:employer ?d . ?d rdf:type ontology:periodical_literature }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3134496
P106
Q12737077
USER
Which occupation has Hervé Gattegno as his/her 's career ?
(Q3134496,P106,c(Q12737077))
action filter_type
action find
entity Q3134496
relation P106
type Q12737077
['Q3134496', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?j WHERE { resource:Q3134496 property:P106 ?j . ?j rdf:type ontology:Q12737077 }
Hervé Gattegno
action filter_type
action find
entity Hervé Gattegno
relation occupation
type occupation
['Hervé Gattegno', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?j WHERE { resource:Hervé_Gattegno property:occupation ?j . ?j rdf:type ontology:occupation }
[]
occupation
Q1930187
SYSTEM
journalist
Q1930187
(Q3134496,P106,c(Q12737077))
action filter_type
action find
entity Q3134496
relation P106
type Q12737077
The [ANSWER] has Hervé Gattegno as his/her 's career
['Q3134496', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?j WHERE { resource:Q3134496 property:P106 ?j . ?j rdf:type ontology:Q12737077 }
journalist
The journalist has Hervé Gattegno as his/her 's career
journalist
action filter_type
action find
entity Hervé Gattegno
relation occupation
type occupation
['Hervé Gattegno', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?j WHERE { resource:Hervé_Gattegno property:occupation ?j . ?j rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3134496
P27
Q15617994
USER
Which administrative territory is Hervé Gattegno a civilian of ?
(Q3134496,P27,c(Q15617994))
action filter_type
action find
entity Q3134496
relation P27
type Q15617994
['Q3134496', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { resource:Q3134496 property:P27 ?x . ?x rdf:type ontology:Q15617994 }
Hervé Gattegno
action filter_type
action find
entity Hervé Gattegno
relation country of citizenship
type designation for an administrative territorial entity
['Hervé Gattegno', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:Hervé_Gattegno property:country_of_citizenship ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142
SYSTEM
France
Q142
(Q3134496,P27,c(Q15617994))
action filter_type
action find
entity Q3134496
relation P27
type Q15617994
[ANSWER] is Hervé Gattegno a civilian of
['Q3134496', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { resource:Q3134496 property:P27 ?x . ?x rdf:type ontology:Q15617994 }
France
France is Hervé Gattegno a civilian of
France
action filter_type
action find
entity Hervé Gattegno
relation country of citizenship
type designation for an administrative territorial entity
['Hervé Gattegno', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:Hervé_Gattegno property:country_of_citizenship ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3134496
P19
Q515
USER
Which city is the place of birth of that person ?
(Q142,P19,c(Q515))
action filter_type
action find
entity Q3134496
relation P19
type Q515
['Q142', 'P19', {'concept': 'Q515'}]
SELECT DISTINCT ?z WHERE { resource:Q3134496 property:P19 ?z . ?z rdf:type ontology:Q515 }
Hervé Gattegno
action filter_type
action find
entity Hervé Gattegno
relation place of birth
type city
['France', 'place of birth', {'concept': 'city'}]
SELECT DISTINCT ?z WHERE { resource:Hervé_Gattegno property:place_of_birth ?z . ?z rdf:type ontology:city }
[]
city
Q23482
SYSTEM
Marseille
Q23482
(Q142,P19,c(Q515))
action filter_type
action find
entity Q3134496
relation P19
type Q515
[ANSWER] is the place of birth of that person
['Q142', 'P19', {'concept': 'Q515'}]
SELECT DISTINCT ?z WHERE { resource:Q3134496 property:P19 ?z . ?z rdf:type ontology:Q515 }
Marseille
Marseille is the place of birth of that person
Marseille
action filter_type
action find
entity Hervé Gattegno
relation place of birth
type city
['France', 'place of birth', {'concept': 'city'}]
SELECT DISTINCT ?z WHERE { resource:Hervé_Gattegno property:place_of_birth ?z . ?z rdf:type ontology:city }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Indirect
P1427
Q515 Q3839081
USER
How many cities gives the origination point of more number of disasters than that city ?
(c(Q3839081),P1427,c(Q515))
action count
action greater
action find_reverse_tuple_counts
relation P1427
type Q515
type Q3839081
action count
action filter_type
action find
entity Q23482
relation P1427
type Q515
[{'concept': 'Q3839081'}, 'P1427', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?b ) WHERE { { SELECT DISTINCT ?d ( COUNT ( ?g ) AS ?k ) WHERE { ?g property:P1427 ?d . ?d rdf:type ontology:Q515 . ?g rdf:type ontology:Q3839081 } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?h ) WHERE { resource:Q23482 property:P1427 ?e . ?e rdf:type ontology:Q515 } } . FILTER ( ?k > ?h ) }
action count
action greater
action find_reverse_tuple_counts
relation start point
type city
type disaster
action count
action filter_type
action find
entity Marseille
relation start point
type city
[{'concept': 'disaster'}, 'start point', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?b ) WHERE { { SELECT DISTINCT ?d ( COUNT ( ?g ) AS ?k ) WHERE { ?g property:start_point ?d . ?d rdf:type ontology:city . ?g rdf:type ontology:disaster } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?h ) WHERE { resource:Marseille property:start_point ?e . ?e rdf:type ontology:city } } . FILTER ( ?k > ?h ) }
[]
city disaster
SYSTEM
1
Q19660
(c(Q3839081),P1427,c(Q515))
action count
action greater
action find_reverse_tuple_counts
relation P1427
type Q515
type Q3839081
action count
action filter_type
action find
entity Q23482
relation P1427
type Q515
[ANSWER]
[{'concept': 'Q3839081'}, 'P1427', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?b ) WHERE { { SELECT DISTINCT ?d ( COUNT ( ?g ) AS ?k ) WHERE { ?g property:P1427 ?d . ?d rdf:type ontology:Q515 . ?g rdf:type ontology:Q3839081 } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?h ) WHERE { resource:Q23482 property:P1427 ?e . ?e rdf:type ontology:Q515 } } . FILTER ( ?k > ?h ) }
Bucharest
1
action count
action greater
action find_reverse_tuple_counts
relation start point
type city
type disaster
action count
action filter_type
action find
entity Marseille
relation start point
type city
[{'concept': 'disaster'}, 'start point', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?b ) WHERE { { SELECT DISTINCT ?d ( COUNT ( ?g ) AS ?k ) WHERE { ?g property:start_point ?d . ?d rdf:type ontology:city . ?g rdf:type ontology:disaster } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?h ) WHERE { resource:Marseille property:start_point ?e . ?e rdf:type ontology:city } } . FILTER ( ?k > ?h ) }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P190
Q515 Q515
USER
Which cities are sister town of around 4 cities ?
(c(Q515),P190,c(Q515))
action approx
action find_tuple_counts
relation P190
type Q515
type Q515
value 4
[{'concept': 'Q515'}, 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ?s WHERE { FILTER ( ?h = 4 ) . { SELECT DISTINCT ?s ( COUNT ( ?x ) AS ?h ) WHERE { ?s property:P190 ?x . ?s rdf:type ontology:Q515 . ?x rdf:type ontology:Q515 } GROUP BY ?s } }
action approx
action find_tuple_counts
relation sister city
type city
type city
value 4
[{'concept': 'city'}, 'sister city', {'concept': 'city'}]
SELECT DISTINCT ?s WHERE { FILTER ( ?h = 4 ) . { SELECT DISTINCT ?s ( COUNT ( ?x ) AS ?h ) WHERE { ?s property:sister_city ?x . ?s rdf:type ontology:city . ?x rdf:type ontology:city } GROUP BY ?s } }
[]
city city
Q1773 Q23482 Q456
SYSTEM
Riga, Marseille, Lyon
Q23430 Q3572 Q11736 Q837968 Q20934 Q57958 Q11462 Q23482 Q16520 Q17042 Q198370 Q8684 Q837157 Q8652 Q19660 Q200267 Q2844 Q533078 Q9005 Q2773 Q1773 Q252061 Q267708 Q1508 Q11194 Q11725 Q839796 Q456 Q1953
(c(Q515),P190,c(Q515))
action approx
action find_tuple_counts
relation P190
type Q515
type Q515
value 4
[ANSWERS] are sister town of around 4 cities
[{'concept': 'Q515'}, 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ?s WHERE { FILTER ( ?h = 4 ) . { SELECT DISTINCT ?s ( COUNT ( ?x ) AS ?h ) WHERE { ?s property:P190 ?x . ?s rdf:type ontology:Q515 . ?x rdf:type ontology:Q515 } GROUP BY ?s } }
Ulaanbaatar Tunis Tianjin Băile Tușnad Incheon Zhenjiang Surabaya Marseille Busan Oakland Zibo Seoul Covasna Miami Bucharest Kamakura Brasília Baraolt Brussels Braunschweig Riga Valea lui Mihai Sovata Makati Sarajevo Chongqing Borsec Lyon Yerevan
Riga, Marseille and Lyon are sister town of around 4 cities
Riga Marseille Lyon
action approx
action find_tuple_counts
relation sister city
type city
type city
value 4
[{'concept': 'city'}, 'sister city', {'concept': 'city'}]
SELECT DISTINCT ?s WHERE { FILTER ( ?h = 4 ) . { SELECT DISTINCT ?s ( COUNT ( ?x ) AS ?h ) WHERE { ?s property:sister_city ?x . ?s rdf:type ontology:city . ?x rdf:type ontology:city } GROUP BY ?s } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q456
P47
Q20667921
USER
Which french administrative divisions are bordered by that city ?
(Q456,P47,c(Q20667921))
action filter_type
action find
entity Q456
relation P47
type Q20667921
['Q456', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ?j WHERE { resource:Q456 property:P47 ?j . ?j rdf:type ontology:Q20667921 }
Lyon
action filter_type
action find
entity Lyon
relation shares border with
type type of french administrative division
['Lyon', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?j WHERE { resource:Lyon property:shares_border_with ?j . ?j rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Clarification for simple ques.
Q456
SYSTEM
Did you mean Lyon ?
Q1773 Q23482 Q456
(Q1773,P47,c(Q20667921)) (Q23482,P47,c(Q20667921)) (Q456,P47,c(Q20667921))
[ANSWER]
['Q1773', 'P47', {'concept': 'Q20667921'}] ['Q23482', 'P47', {'concept': 'Q20667921'}] ['Q456', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ?j WHERE { resource:Q456 property:P47 ?j . ?j rdf:type ontology:Q20667921 }
Riga Marseille Lyon
Did you mean Lyon ?
Lyon
['Riga', 'shares border with', {'concept': 'type of french administrative division'}] ['Marseille', 'shares border with', {'concept': 'type of french administrative division'}] ['Lyon', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?j WHERE { resource:Lyon property:shares_border_with ?j . ?j rdf:type ontology:type_of_french_administrative_division }
[]
Simple Question (Coreferenced)
USER
Yes
(Q456,P47,c(Q20667921))
['Q456', 'P47', {'concept': 'Q20667921'}]
['Lyon', 'shares border with', {'concept': 'type of french administrative division'}]
[]
Q1291 Q13598 Q8358
SYSTEM
Bron, Vénissieux, Oullins
Q1617133 Q828676 Q1617042 Q13598 Q1615759 Q387460 Q273748 Q772460 Q1469657 Q1617501 Q8358 Q1291 Q244717 Q1647506 Q4054
(Q456,P47,c(Q20667921))
action filter_type
action find
entity Q456
relation P47
type Q20667921
The [ANSWERS] are bordered by that city
['Q456', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ?j WHERE { resource:Q456 property:P47 ?j . ?j rdf:type ontology:Q20667921 }
Champagne-au-Mont-d'Or Saint-Fons Pierre-Bénite Vénissieux Saint-Cyr-au-Mont-d'Or Sainte-Foy-lès-Lyon Écully La Mulatière Collonges-au-Mont-d'Or Saint-Didier-au-Mont-d'Or Oullins Bron Caluire-et-Cuire Tassin-la-Demi-Lune Francheville, Rhône
The Bron, Vénissieux and Oullins are bordered by that city
Bron Vénissieux Oullins
action filter_type
action find
entity Lyon
relation shares border with
type type of french administrative division
['Lyon', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?j WHERE { resource:Lyon property:shares_border_with ?j . ?j rdf:type ontology:type_of_french_administrative_division }
[]