Simple Question (Direct)
Simple Question
Q679757
P106
Q12737077
USER
Which occupations have Edmond Bour as his/her 's career ?
(Q679757,P106,c(Q12737077))
action filter_type
action find
entity Q679757
relation P106
type Q12737077
['Q679757', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q12737077 . resource:Q679757 property:P106 ?w }
Edmond Bour
action filter_type
action find
entity Edmond Bour
relation occupation
type occupation
['Edmond Bour', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:occupation . resource:Edmond_Bour property:occupation ?w }
[]
occupation
Q81096 Q170790
SYSTEM
engineer, mathematician
Q81096 Q170790
(Q679757,P106,c(Q12737077))
action filter_type
action find
entity Q679757
relation P106
type Q12737077
The [ANSWERS] have Edmond Bour as his/her 's career
['Q679757', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q12737077 . resource:Q679757 property:P106 ?w }
engineer mathematician
The engineer and mathematician have Edmond Bour as his/her 's career
engineer mathematician
action filter_type
action find
entity Edmond Bour
relation occupation
type occupation
['Edmond Bour', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:occupation . resource:Edmond_Bour property:occupation ?w }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q679757
P69
Q3914
USER
Which school is that person an alumni of ?
(Q81096,P69,c(Q3914)) (Q170790,P69,c(Q3914))
action filter_type
action find
entity Q679757
relation P69
type Q3914
['Q81096', 'P69', {'concept': 'Q3914'}] ['Q170790', 'P69', {'concept': 'Q3914'}]
SELECT DISTINCT ?y WHERE { resource:Q679757 property:P69 ?y . ?y rdf:type ontology:Q3914 }
Edmond Bour
action filter_type
action find
entity Edmond Bour
relation educated at
type school
['engineer', 'educated at', {'concept': 'school'}] ['mathematician', 'educated at', {'concept': 'school'}]
SELECT DISTINCT ?y WHERE { resource:Edmond_Bour property:educated_at ?y . ?y rdf:type ontology:school }
[]
school
Q273626
SYSTEM
École Polytechnique
Q273626
(Q81096,P69,c(Q3914)) (Q170790,P69,c(Q3914))
action filter_type
action find
entity Q679757
relation P69
type Q3914
[ANSWER] is that person an alumni of
['Q81096', 'P69', {'concept': 'Q3914'}] ['Q170790', 'P69', {'concept': 'Q3914'}]
SELECT DISTINCT ?y WHERE { resource:Q679757 property:P69 ?y . ?y rdf:type ontology:Q3914 }
École Polytechnique
École Polytechnique is that person an alumni of
École Polytechnique
action filter_type
action find
entity Edmond Bour
relation educated at
type school
['engineer', 'educated at', {'concept': 'school'}] ['mathematician', 'educated at', {'concept': 'school'}]
SELECT DISTINCT ?y WHERE { resource:Edmond_Bour property:educated_at ?y . ?y rdf:type ontology:school }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation|Incomplete
Q3167397 Q679757
P69
Q3914
USER
And also Jean-Marc Jancovici
AND((Q679757,P69,c(Q3914)), (Q3167397,P69,c(Q3914)))
action filter_type
action intersection
action find
entity Q679757
relation P69
action find
entity Q3167397
relation P69
type Q3914
{'AND': [['Q679757', 'P69', {'concept': 'Q3914'}], ['Q3167397', 'P69', {'concept': 'Q3914'}]]}
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q3914 . resource:Q679757 property:P69 ?b . resource:Q3167397 property:P69 ?b }
Jean-Marc Jancovici Edmond Bour
action filter_type
action intersection
action find
entity Edmond Bour
relation educated at
action find
entity Jean-Marc Jancovici
relation educated at
type school
{'AND': [['Edmond Bour', 'educated at', {'concept': 'school'}], ['Jean-Marc Jancovici', 'educated at', {'concept': 'school'}]]}
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:school . resource:Edmond_Bour property:educated_at ?b . resource:Jean-Marc_Jancovici property:educated_at ?b }
[]
school
Q273626
SYSTEM
École Polytechnique
Q273626
AND((Q679757,P69,c(Q3914)), (Q3167397,P69,c(Q3914)))
action filter_type
action intersection
action find
entity Q679757
relation P69
action find
entity Q3167397
relation P69
type Q3914
[ANSWER]
{'AND': [['Q679757', 'P69', {'concept': 'Q3914'}], ['Q3167397', 'P69', {'concept': 'Q3914'}]]}
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q3914 . resource:Q679757 property:P69 ?b . resource:Q3167397 property:P69 ?b }
École Polytechnique
École Polytechnique
action filter_type
action intersection
action find
entity Edmond Bour
relation educated at
action find
entity Jean-Marc Jancovici
relation educated at
type school
{'AND': [['Edmond Bour', 'educated at', {'concept': 'school'}], ['Jean-Marc Jancovici', 'educated at', {'concept': 'school'}]]}
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:school . resource:Edmond_Bour property:educated_at ?b . resource:Jean-Marc_Jancovici property:educated_at ?b }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q1912393 Q679757
P19
Q20667921
USER
Which french administrative divisions are the places of birth of Edmond Bour or Max Delys ?
OR((Q679757,P19,c(Q20667921)), (Q1912393,P19,c(Q20667921)))
action filter_type
action union
action find
entity Q679757
relation P19
action find
entity Q1912393
relation P19
type Q20667921
{'OR': [['Q679757', 'P19', {'concept': 'Q20667921'}], ['Q1912393', 'P19', {'concept': 'Q20667921'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Q679757 property:P19 ?w } UNION { resource:Q1912393 property:P19 ?w } } . ?w rdf:type ontology:Q20667921 }
Max Delys Edmond Bour
action filter_type
action union
action find
entity Edmond Bour
relation place of birth
action find
entity Max Delys
relation place of birth
type type of french administrative division
{'OR': [['Edmond Bour', 'place of birth', {'concept': 'type of french administrative division'}], ['Max Delys', 'place of birth', {'concept': 'type of french administrative division'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Edmond_Bour property:place_of_birth ?w } UNION { resource:Max_Delys property:place_of_birth ?w } } . ?w rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q39984 Q265332
SYSTEM
Cannes, Gray, Haute-Saône
Q39984 Q265332
OR((Q679757,P19,c(Q20667921)), (Q1912393,P19,c(Q20667921)))
action filter_type
action union
action find
entity Q679757
relation P19
action find
entity Q1912393
relation P19
type Q20667921
[ANSWERS]
{'OR': [['Q679757', 'P19', {'concept': 'Q20667921'}], ['Q1912393', 'P19', {'concept': 'Q20667921'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Q679757 property:P19 ?w } UNION { resource:Q1912393 property:P19 ?w } } . ?w rdf:type ontology:Q20667921 }
Cannes Gray, Haute-Saône
Cannes and Gray, Haute-Saône are the places of birth of Edmond Bour or Max Delys
Cannes Gray, Haute-Saône
action filter_type
action union
action find
entity Edmond Bour
relation place of birth
action find
entity Max Delys
relation place of birth
type type of french administrative division
{'OR': [['Edmond Bour', 'place of birth', {'concept': 'type of french administrative division'}], ['Max Delys', 'place of birth', {'concept': 'type of french administrative division'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Edmond_Bour property:place_of_birth ?w } UNION { resource:Max_Delys property:place_of_birth ?w } } . ?w rdf:type ontology:type_of_french_administrative_division }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P47
Q20667921
USER
How many french administrative divisions have a shared border with that french administrative division ?
(Q265332,P47,c(Q20667921))
['Q265332', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q265332 property:P47 ?z . ?z rdf:type ontology:Q20667921 }
['Gray, Haute-Saône', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Gray,_Haute-Saône property:shares_border_with ?z . ?z rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Quantitative|Count|Single entity type|Clarification
Q39984
SYSTEM
Did you mean Cannes ?
(Q39984,P47,c(Q20667921)) (Q265332,P47,c(Q20667921))
[ANSWER]
['Q39984', 'P47', {'concept': 'Q20667921'}] ['Q265332', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q265332 property:P47 ?z . ?z rdf:type ontology:Q20667921 }
Did you mean Cannes ?
Cannes
['Cannes', 'shares border with', {'concept': 'type of french administrative division'}] ['Gray, Haute-Saône', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Gray,_Haute-Saône property:shares_border_with ?z . ?z rdf:type ontology:type_of_french_administrative_division }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Gray, Haute-Saône. Could you tell me the answer for that?
(Q265332,P47,c(Q20667921))
Q265332
['Q265332', 'P47', {'concept': 'Q20667921'}]
['Gray, Haute-Saône', 'shares border with', {'concept': 'type of french administrative division'}]
[]
SYSTEM
11
Q834768 Q546981 Q902292 Q902207 Q834683 Q903506 Q630946 Q811042 Q489370 Q781315 Q835493
(Q265332,P47,c(Q20667921))
[ANSWER]
['Q265332', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q265332 property:P47 ?z . ?z rdf:type ontology:Q20667921 }
Champvans Rigny Gray-la-Ville Saint-Broing Cresancey Velet Arc-lès-Gray Battrans Ancier Noiron Esmoulins
11
['Gray, Haute-Saône', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Gray,_Haute-Saône property:shares_border_with ?z . ?z rdf:type ontology:type_of_french_administrative_division }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q39984
P6
Q502895
USER
Which person is Cannes the head of goverment of ?
(Q39984,P6,c(Q502895))
action filter_type
action find
entity Q39984
relation P6
type Q502895
['Q39984', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?s WHERE { resource:Q39984 property:P6 ?s . ?s rdf:type ontology:Q502895 }
Cannes
action filter_type
action find
entity Cannes
relation head of government
type common name
['Cannes', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?s WHERE { resource:Cannes property:head_of_government ?s . ?s rdf:type ontology:common_name }
[]
common name
Q2897604
SYSTEM
Bernard Brochand
Q2897604
(Q39984,P6,c(Q502895))
action filter_type
action find
entity Q39984
relation P6
type Q502895
[ANSWER] is Cannes the head of goverment of
['Q39984', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?s WHERE { resource:Q39984 property:P6 ?s . ?s rdf:type ontology:Q502895 }
Bernard Brochand
Bernard Brochand is Cannes the head of goverment of
Bernard Brochand
action filter_type
action find
entity Cannes
relation head of government
type common name
['Cannes', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?s WHERE { resource:Cannes property:head_of_government ?s . ?s rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q39984
P190
Q56061
USER
Which administrative territories are partner towns of Cannes ?
(Q39984,P190,c(Q56061))
action filter_type
action find
entity Q39984
relation P190
type Q56061
['Q39984', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q56061 . resource:Q39984 property:P190 ?h }
Cannes
action filter_type
action find
entity Cannes
relation sister city
type administrative territorial entity
['Cannes', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:administrative_territorial_entity . resource:Cannes property:sister_city ?h }
[]
administrative territorial entity
Q2807 Q33935 Q81398
SYSTEM
Madrid, Tel Aviv, Acapulco
Q35178 Q33935 Q127856 Q81398 Q66629 Q2807 Q1046653
(Q39984,P190,c(Q56061))
action filter_type
action find
entity Q39984
relation P190
type Q56061
[ANSWERS] are partner towns of Cannes
['Q39984', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q56061 . resource:Q39984 property:P190 ?h }
Kuwait City Tel Aviv Beverly Hills Acapulco Saanen Madrid Khemisset
Madrid, Tel Aviv and Acapulco are partner towns of Cannes
Madrid Tel Aviv Acapulco
action filter_type
action find
entity Cannes
relation sister city
type administrative territorial entity
['Cannes', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:administrative_territorial_entity . resource:Cannes property:sister_city ?h }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q2807 Q33935 Q81398
P190
Q515
USER
Which cities are partner town of those administrative territories ?
(c(Q515),P190,Q2807) (c(Q515),P190,Q33935) (c(Q515),P190,Q81398)
action filter_type
action find
entity prev_answer
relation P190
type Q515
[{'concept': 'Q515'}, 'P190', 'Q2807'] [{'concept': 'Q515'}, 'P190', 'Q33935'] [{'concept': 'Q515'}, 'P190', 'Q81398']
SELECT DISTINCT ?h WHERE { ?x property:P190 ?h . ?h rdf:type ontology:Q515 . VALUES ( ?x ) { ( resource:Q35178 ) ( resource:Q33935 ) ( resource:Q127856 ) } }
Madrid Tel Aviv Acapulco
action filter_type
action find
entity prev_answer
relation sister city
type city
[{'concept': 'city'}, 'sister city', 'Madrid'] [{'concept': 'city'}, 'sister city', 'Tel Aviv'] [{'concept': 'city'}, 'sister city', 'Acapulco']
SELECT DISTINCT ?h WHERE { ?x property:sister_city ?h . ?h rdf:type ontology:city . VALUES ( ?x ) { ( resource:Kuwait_City ) ( resource:Tel_Aviv ) ( resource:Beverly_Hills ) } }
[]
city
Q1486 Q1486 Q1794
SYSTEM
Buenos Aires for 1st, 2nd, Frankfurt for 3rd
Q1533 Q2900 Q2887 Q1486 Q1461 Q19689 Q9005 Q8652 Q11194 Q1519 Q3624 Q1486 Q1794 Q20934 Q3692 Q1461 Q653364
(c(Q515),P190,Q2807) (c(Q515),P190,Q33935) (c(Q515),P190,Q81398)
action filter_type
action find
entity prev_answer
relation P190
type Q515
[ANSWERS]
[{'concept': 'Q515'}, 'P190', 'Q2807'] [{'concept': 'Q515'}, 'P190', 'Q33935'] [{'concept': 'Q515'}, 'P190', 'Q81398']
SELECT DISTINCT ?h WHERE { ?x property:P190 ?h . ?h rdf:type ontology:Q515 . VALUES ( ?x ) { ( resource:Q35178 ) ( resource:Q33935 ) ( resource:Q127856 ) } }
Caracas Quito Santiago Buenos Aires Manila Tirana Brussels Miami Sarajevo Abu Dhabi Addis Ababa Buenos Aires Frankfurt Incheon Riyadh Manila Atami
Buenos Aires, Buenos Aires and Frankfurt are partner town of those administrative territories
Buenos Aires Buenos Aires Frankfurt
action filter_type
action find
entity prev_answer
relation sister city
type city
[{'concept': 'city'}, 'sister city', 'Madrid'] [{'concept': 'city'}, 'sister city', 'Tel Aviv'] [{'concept': 'city'}, 'sister city', 'Acapulco']
SELECT DISTINCT ?h WHERE { ?x property:sister_city ?h . ?h rdf:type ontology:city . VALUES ( ?x ) { ( resource:Kuwait_City ) ( resource:Tel_Aviv ) ( resource:Beverly_Hills ) } }
[]