Simple Question (Direct)
Simple Question
Q1029252
P22
Q502895
USER
Who was the father of Camille Polonceau ?
(Q1029252,P22,c(Q502895))
action filter_type
action find
entity Q1029252
relation P22
type Q502895
['Q1029252', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?s WHERE { resource:Q1029252 property:P22 ?s . ?s rdf:type ontology:Q502895 }
Camille Polonceau
action filter_type
action find
entity Camille Polonceau
relation father
type common name
['Camille Polonceau', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?s WHERE { resource:Camille_Polonceau property:father ?s . ?s rdf:type ontology:common_name }
[]
common name
Q1816631
SYSTEM
Antoine-Rémy Polonceau
Q1816631
(Q1029252,P22,c(Q502895))
action filter_type
action find
entity Q1029252
relation P22
type Q502895
The father of Camille Polonceau was named [ANSWER]
['Q1029252', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?s WHERE { resource:Q1029252 property:P22 ?s . ?s rdf:type ontology:Q502895 }
Antoine-Rémy Polonceau
The father of Camille Polonceau was named Antoine-Rémy Polonceau
Antoine-Rémy Polonceau
action filter_type
action find
entity Camille Polonceau
relation father
type common name
['Camille Polonceau', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?s WHERE { resource:Camille_Polonceau property:father ?s . ?s rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1816631
P69
Q3914
USER
Which school is the alma mater of that person ?
(Q1816631,P69,c(Q3914))
action filter_type
action find
entity Q1816631
relation P69
type Q3914
['Q1816631', 'P69', {'concept': 'Q3914'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q3914 . resource:Q1816631 property:P69 ?x }
Antoine-Rémy Polonceau
action filter_type
action find
entity Antoine-Rémy Polonceau
relation educated at
type school
['Antoine-Rémy Polonceau', 'educated at', {'concept': 'school'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:school . resource:Antoine-Rémy_Polonceau property:educated_at ?x }
[]
school
Q273626
SYSTEM
École Polytechnique
Q273626
(Q1816631,P69,c(Q3914))
action filter_type
action find
entity Q1816631
relation P69
type Q3914
[ANSWER] is the alma mater of that person
['Q1816631', 'P69', {'concept': 'Q3914'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q3914 . resource:Q1816631 property:P69 ?x }
École Polytechnique
École Polytechnique is the alma mater of that person
École Polytechnique
action filter_type
action find
entity Antoine-Rémy Polonceau
relation educated at
type school
['Antoine-Rémy Polonceau', 'educated at', {'concept': 'school'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:school . resource:Antoine-Rémy_Polonceau property:educated_at ?x }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q273626
P106
Q502895
USER
Who have a job as that school ?
(c(Q502895),P106,Q273626)
action filter_type
action find_reverse
entity Q273626
relation P106
type Q502895
[{'concept': 'Q502895'}, 'P106', 'Q273626']
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q502895 . ?m property:P106 resource:Q273626 }
École Polytechnique
action filter_type
action find_reverse
entity École Polytechnique
relation occupation
type common name
[{'concept': 'common name'}, 'occupation', 'École Polytechnique']
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:common_name . ?m property:occupation resource:École_Polytechnique }
[]
common name
Q3130324 Q3380657
SYSTEM
Henri-Alexis de Tholosé, Philippe Roqueplo
Q3130324 Q3380657
(c(Q502895),P106,Q273626)
action filter_type
action find_reverse
entity Q273626
relation P106
type Q502895
[ANSWERS] have a job as that school
[{'concept': 'Q502895'}, 'P106', 'Q273626']
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q502895 . ?m property:P106 resource:Q273626 }
Henri-Alexis de Tholosé Philippe Roqueplo
Henri-Alexis de Tholosé and Philippe Roqueplo have a job as that school
Henri-Alexis de Tholosé Philippe Roqueplo
action filter_type
action find_reverse
entity École Polytechnique
relation occupation
type common name
[{'concept': 'common name'}, 'occupation', 'École Polytechnique']
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:common_name . ?m property:occupation resource:École_Polytechnique }
[]
Clarification
Simple Question|Single Entity|Indirect
Q3380657
P27
Q15617994
USER
Which administrative territory does that person belong to ?
(Q3380657,P27,c(Q15617994))
action filter_type
action find
entity Q3380657
relation P27
type Q15617994
['Q3380657', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?f WHERE { resource:Q3380657 property:P27 ?f . ?f rdf:type ontology:Q15617994 }
Philippe Roqueplo
action filter_type
action find
entity Philippe Roqueplo
relation country of citizenship
type designation for an administrative territorial entity
['Philippe Roqueplo', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { resource:Philippe_Roqueplo property:country_of_citizenship ?f . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Clarification for simple ques.
Q3130324
SYSTEM
Did you mean Henri-Alexis de Tholosé ?
Q3130324 Q3380657
(Q3130324,P27,c(Q15617994)) (Q3380657,P27,c(Q15617994))
[ANSWER]
['Q3130324', 'P27', {'concept': 'Q15617994'}] ['Q3380657', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?f WHERE { resource:Q3380657 property:P27 ?f . ?f rdf:type ontology:Q15617994 }
Henri-Alexis de Tholosé Philippe Roqueplo
Did you mean Henri-Alexis de Tholosé ?
Henri-Alexis de Tholosé
['Henri-Alexis de Tholosé', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}] ['Philippe Roqueplo', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { resource:Philippe_Roqueplo property:country_of_citizenship ?f . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
USER
No, I meant Philippe Roqueplo. Could you tell me the answer for that?
(Q3380657,P27,c(Q15617994))
Q3380657
['Q3380657', 'P27', {'concept': 'Q15617994'}]
['Philippe Roqueplo', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
[]
Q142
SYSTEM
France
Q142
(Q3380657,P27,c(Q15617994))
action filter_type
action find
entity Q3380657
relation P27
type Q15617994
That person belongs to the [ANSWER]
['Q3380657', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?f WHERE { resource:Q3380657 property:P27 ?f . ?f rdf:type ontology:Q15617994 }
France
That person belongs to the France
France
action filter_type
action find
entity Philippe Roqueplo
relation country of citizenship
type designation for an administrative territorial entity
['Philippe Roqueplo', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { resource:Philippe_Roqueplo property:country_of_citizenship ?f . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Indirect
P47
Q1048835
USER
How many political territories share border with that administrative territory ?
(Q142,P47,c(Q1048835))
action count
action filter_type
action find
entity Q142
relation P47
type Q1048835
['Q142', 'P47', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?e ) WHERE { ?d rdf:type ontology:Q1048835 . resource:Q142 property:P47 ?d }
action count
action filter_type
action find
entity France
relation shares border with
type political territorial entity
['France', 'shares border with', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?e ) WHERE { ?d rdf:type ontology:political_territorial_entity . resource:France property:shares_border_with ?d }
[]
political territorial entity
SYSTEM
2
Q13116 Q183
(Q142,P47,c(Q1048835))
action count
action filter_type
action find
entity Q142
relation P47
type Q1048835
[ANSWER]
['Q142', 'P47', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?e ) WHERE { ?d rdf:type ontology:Q1048835 . resource:Q142 property:P47 ?d }
Benelux Germany
2
action count
action filter_type
action find
entity France
relation shares border with
type political territorial entity
['France', 'shares border with', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?e ) WHERE { ?d rdf:type ontology:political_territorial_entity . resource:France property:shares_border_with ?d }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q190571
Q571
USER
And what about Scattered Islands in the Indian Ocean?
(Q190571,P85,c(Q571))
action count
action filter_type
action find
entity Q190571
relation P85
type Q571
['Q190571', 'P85', {'concept': 'Q571'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?p ) WHERE { resource:Q190571 property:P85 ?b . ?b rdf:type ontology:Q571 }
Scattered Islands in the Indian Ocean
action count
action filter_type
action find
entity Scattered Islands in the Indian Ocean
relation anthem
type book
['Scattered Islands in the Indian Ocean', 'anthem', {'concept': 'book'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?p ) WHERE { resource:Scattered_Islands_in_the_Indian_Ocean property:anthem ?b . ?b rdf:type ontology:book }
[]
book
SYSTEM
1
(Q190571,P85,c(Q571))
action count
action filter_type
action find
entity Q190571
relation P85
type Q571
[ANSWER]
['Q190571', 'P85', {'concept': 'Q571'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?p ) WHERE { resource:Q190571 property:P85 ?b . ?b rdf:type ontology:Q571 }
1
action count
action filter_type
action find
entity Scattered Islands in the Indian Ocean
relation anthem
type book
['Scattered Islands in the Indian Ocean', 'anthem', {'concept': 'book'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?p ) WHERE { resource:Scattered_Islands_in_the_Indian_Ocean property:anthem ?b . ?b rdf:type ontology:book }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q1048835
USER
Which political territories have diplomatic associations with atmost 93 administrative territories ?
(c(Q1048835),P530,c(Q15617994))
action atmost
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 93
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { FILTER ( ?p <= 93 ) . { SELECT DISTINCT ?q ( COUNT ( ?e ) AS ?p ) WHERE { ?q property:P530 ?e . ?q rdf:type ontology:Q1048835 . ?e rdf:type ontology:Q15617994 } GROUP BY ?q } }
action atmost
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 93
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { FILTER ( ?p <= 93 ) . { SELECT DISTINCT ?q ( COUNT ( ?e ) AS ?p ) WHERE { ?q property:diplomatic_relation ?e . ?q rdf:type ontology:political_territorial_entity . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?q } }
[]
designation for an administrative territorial entity political territorial entity
Q35 Q16 Q40
SYSTEM
Denmark, Canada, Austria
Q1000 Q40 Q781 Q778 Q769 Q685 Q35 Q691 Q16 Q664 Q766
(c(Q1048835),P530,c(Q15617994))
action atmost
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 93
[ANSWERS] have diplomatic associations with atmost 93 administrative territories
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { FILTER ( ?p <= 93 ) . { SELECT DISTINCT ?q ( COUNT ( ?e ) AS ?p ) WHERE { ?q property:P530 ?e . ?q rdf:type ontology:Q1048835 . ?e rdf:type ontology:Q15617994 } GROUP BY ?q } }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea Canada New Zealand Jamaica
Denmark, Canada and Austria have diplomatic associations with atmost 93 administrative territories
Denmark Canada Austria
action atmost
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 93
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { FILTER ( ?p <= 93 ) . { SELECT DISTINCT ?q ( COUNT ( ?e ) AS ?p ) WHERE { ?q property:diplomatic_relation ?e . ?q rdf:type ontology:political_territorial_entity . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?q } }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q5686279
P530
Q15617994
USER
Do Hayden-Winkelman Unified School District have ambassadorial relations with those political territories ?
(Q5686279,P530,Q35) (Q5686279,P530,Q16) (Q5686279,P530,Q40)
action is_in
entity prev_answer
action find
entity Q5686279
relation P530
['Q5686279', 'P530', 'Q35'] ['Q5686279', 'P530', 'Q16'] ['Q5686279', 'P530', 'Q40']
ASK WHERE { resource:Q5686279 property:P530 ?h . VALUES ( ?h ) { ( resource:Q1000 ) ( resource:Q40 ) ( resource:Q781 ) } }
Hayden-Winkelman Unified School District
action is_in
entity prev_answer
action find
entity Hayden-Winkelman Unified School District
relation diplomatic relation
['Hayden-Winkelman Unified School District', 'diplomatic relation', 'Denmark'] ['Hayden-Winkelman Unified School District', 'diplomatic relation', 'Canada'] ['Hayden-Winkelman Unified School District', 'diplomatic relation', 'Austria']
ASK WHERE { resource:Hayden-Winkelman_Unified_School_District property:diplomatic_relation ?h . VALUES ( ?h ) { ( resource:Gabon ) ( resource:Austria ) ( resource:Antigua_and_Barbuda ) } }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q5686279,P530,Q35) (Q5686279,P530,Q16) (Q5686279,P530,Q40)
action is_in
entity prev_answer
action find
entity Q5686279
relation P530
[ANSWER]
['Q5686279', 'P530', 'Q35'] ['Q5686279', 'P530', 'Q16'] ['Q5686279', 'P530', 'Q40']
ASK WHERE { resource:Q5686279 property:P530 ?h . VALUES ( ?h ) { ( resource:Q1000 ) ( resource:Q40 ) ( resource:Q781 ) } }
No
action is_in
entity prev_answer
action find
entity Hayden-Winkelman Unified School District
relation diplomatic relation
['Hayden-Winkelman Unified School District', 'diplomatic relation', 'Denmark'] ['Hayden-Winkelman Unified School District', 'diplomatic relation', 'Canada'] ['Hayden-Winkelman Unified School District', 'diplomatic relation', 'Austria']
ASK WHERE { resource:Hayden-Winkelman_Unified_School_District property:diplomatic_relation ?h . VALUES ( ?h ) { ( resource:Gabon ) ( resource:Austria ) ( resource:Antigua_and_Barbuda ) } }
[]