Simple Question (Direct)
Simple Question
Q430919
P463
Q20667921
USER
Which french administrative division was Ximena Abarca a member of ?
(Q430919,P463,c(Q20667921))
action filter_type
action find
entity Q430919
relation P463
type Q20667921
['Q430919', 'P463', {'concept': 'Q20667921'}]
SELECT DISTINCT ?t WHERE { resource:Q430919 property:P463 ?t . ?t rdf:type ontology:Q20667921 }
Ximena Abarca
action filter_type
action find
entity Ximena Abarca
relation member of
type type of french administrative division
['Ximena Abarca', 'member of', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?t WHERE { resource:Ximena_Abarca property:member_of ?t . ?t rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q720519
SYSTEM
Ruch
Q720519
(Q430919,P463,c(Q20667921))
action filter_type
action find
entity Q430919
relation P463
type Q20667921
[ANSWER] was Ximena Abarca a member of
['Q430919', 'P463', {'concept': 'Q20667921'}]
SELECT DISTINCT ?t WHERE { resource:Q430919 property:P463 ?t . ?t rdf:type ontology:Q20667921 }
Ruch
Ruch was Ximena Abarca a member of
Ruch
action filter_type
action find
entity Ximena Abarca
relation member of
type type of french administrative division
['Ximena Abarca', 'member of', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?t WHERE { resource:Ximena_Abarca property:member_of ?t . ?t rdf:type ontology:type_of_french_administrative_division }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q720519
P47
Q20667921
USER
Which french administrative divisions have an adjacent border with that one ?
(c(Q20667921),P47,Q720519)
action filter_type
action find
entity Q720519
relation P47
type Q20667921
[{'concept': 'Q20667921'}, 'P47', 'Q720519']
SELECT DISTINCT ?x WHERE { resource:Q720519 property:P47 ?x . ?x rdf:type ontology:Q20667921 }
Ruch
action filter_type
action find
entity Ruch
relation shares border with
type type of french administrative division
[{'concept': 'type of french administrative division'}, 'shares border with', 'Ruch']
SELECT DISTINCT ?x WHERE { resource:Ruch property:shares_border_with ?x . ?x rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q715850 Q1007584 Q1007160
SYSTEM
Blasimon, Mauriac, Saint-Antoine-du-Queyret
Q186322 Q1007584 Q1007160 Q717503 Q175986 Q715850 Q715933
(c(Q20667921),P47,Q720519)
action filter_type
action find
entity Q720519
relation P47
type Q20667921
[ANSWERS] have an adjacent border with that one
[{'concept': 'Q20667921'}, 'P47', 'Q720519']
SELECT DISTINCT ?x WHERE { resource:Q720519 property:P47 ?x . ?x rdf:type ontology:Q20667921 }
Doulezon Mauriac Saint-Antoine-du-Queyret Mérignas Pujols Blasimon Bossugan
Blasimon, Mauriac and Saint-Antoine-du-Queyret have an adjacent border with that one
Blasimon Mauriac Saint-Antoine-du-Queyret
action filter_type
action find
entity Ruch
relation shares border with
type type of french administrative division
[{'concept': 'type of french administrative division'}, 'shares border with', 'Ruch']
SELECT DISTINCT ?x WHERE { resource:Ruch property:shares_border_with ?x . ?x rdf:type ontology:type_of_french_administrative_division }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P47
Q20667921
USER
How many french administrative divisions are bordered by that french administrative division ?
(c(Q20667921),P47,Q715850)
[{'concept': 'Q20667921'}, 'P47', 'Q715850']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:P47 resource:Q715850 . ?z rdf:type ontology:Q20667921 }
[{'concept': 'type of french administrative division'}, 'shares border with', 'Blasimon']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:shares_border_with resource:Blasimon . ?z rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Quantitative|Count|Single entity type|Clarification
Q1007584
SYSTEM
Did you mean Mauriac ?
(c(Q20667921),P47,Q715850) (c(Q20667921),P47,Q1007584) (c(Q20667921),P47,Q1007160)
[ANSWER]
[{'concept': 'Q20667921'}, 'P47', 'Q715850'] [{'concept': 'Q20667921'}, 'P47', 'Q1007584'] [{'concept': 'Q20667921'}, 'P47', 'Q1007160']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:P47 resource:Q715850 . ?z rdf:type ontology:Q20667921 }
Did you mean Mauriac ?
Mauriac
[{'concept': 'type of french administrative division'}, 'shares border with', 'Blasimon'] [{'concept': 'type of french administrative division'}, 'shares border with', 'Mauriac'] [{'concept': 'type of french administrative division'}, 'shares border with', 'Saint-Antoine-du-Queyret']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:shares_border_with resource:Blasimon . ?z rdf:type ontology:type_of_french_administrative_division }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Blasimon. Could you tell me the answer for that?
(c(Q20667921),P47,Q715850)
Q715850
[{'concept': 'Q20667921'}, 'P47', 'Q715850']
[{'concept': 'type of french administrative division'}, 'shares border with', 'Blasimon']
[]
SYSTEM
9
Q1007584 Q720288 Q717376 Q379921 Q196524 Q1004581 Q717503 Q1004744 Q720519
(c(Q20667921),P47,Q715850)
[ANSWER]
[{'concept': 'Q20667921'}, 'P47', 'Q715850']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:P47 resource:Q715850 . ?z rdf:type ontology:Q20667921 }
Mauriac Rauzan Jugazan Sauveterre-de-Guyenne Cleyrac Lugasson Mérignas Frontenac Ruch
9
[{'concept': 'type of french administrative division'}, 'shares border with', 'Blasimon']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:shares_border_with resource:Blasimon . ?z rdf:type ontology:type_of_french_administrative_division }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q18953427 Q720519
P17
Q15617994
USER
Which administrative territories do Ruch or Zeussingel belong to ?
OR((Q720519,P17,c(Q15617994)), (Q18953427,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q720519
relation P17
action find
entity Q18953427
relation P17
type Q15617994
{'OR': [['Q720519', 'P17', {'concept': 'Q15617994'}], ['Q18953427', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?q WHERE { { VALUES ( ?h ) { ( resource:Q720519 ) ( resource:Q18953427 ) } . ?h property:P17 ?q } . ?q rdf:type ontology:Q15617994 }
Zeussingel Ruch
action filter_type
action union
action find
entity Ruch
relation country
action find
entity Zeussingel
relation country
type designation for an administrative territorial entity
{'OR': [['Ruch', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Zeussingel', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?q WHERE { { VALUES ( ?h ) { ( resource:Ruch ) ( resource:Zeussingel ) } . ?h property:country ?q } . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142 Q55
SYSTEM
France, Netherlands
Q142 Q55
OR((Q720519,P17,c(Q15617994)), (Q18953427,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q720519
relation P17
action find
entity Q18953427
relation P17
type Q15617994
Ruch or Zeussingel belong to the [ANSWERS]
{'OR': [['Q720519', 'P17', {'concept': 'Q15617994'}], ['Q18953427', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?q WHERE { { VALUES ( ?h ) { ( resource:Q720519 ) ( resource:Q18953427 ) } . ?h property:P17 ?q } . ?q rdf:type ontology:Q15617994 }
France Netherlands
Ruch or Zeussingel belong to the France and Netherlands
France Netherlands
action filter_type
action union
action find
entity Ruch
relation country
action find
entity Zeussingel
relation country
type designation for an administrative territorial entity
{'OR': [['Ruch', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Zeussingel', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?q WHERE { { VALUES ( ?h ) { ( resource:Ruch ) ( resource:Zeussingel ) } . ?h property:country ?q } . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q2834520 Q720519
P27 P17
Q15617994
USER
Which administrative territories are Ruch situated in and are Alexis Grüss an inhabitant of ?
AND((Q720519,P17,c(Q15617994)), (Q2834520,P27,c(Q15617994)))
action filter_type
action intersection
action find
entity Q720519
relation P17
action find
entity Q2834520
relation P27
type Q15617994
{'AND': [['Q720519', 'P17', {'concept': 'Q15617994'}], ['Q2834520', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?r WHERE { resource:Q2834520 property:P27 ?r . resource:Q720519 property:P17 ?r . ?r rdf:type ontology:Q15617994 }
Alexis Grüss Ruch
action filter_type
action intersection
action find
entity Ruch
relation country
action find
entity Alexis Grüss
relation country of citizenship
type designation for an administrative territorial entity
{'AND': [['Ruch', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Alexis Grüss', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?r WHERE { resource:Alexis_Grüss property:country_of_citizenship ?r . resource:Ruch property:country ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142
SYSTEM
France
Q142
AND((Q720519,P17,c(Q15617994)), (Q2834520,P27,c(Q15617994)))
action filter_type
action intersection
action find
entity Q720519
relation P17
action find
entity Q2834520
relation P27
type Q15617994
Ruch Alexis Grüss are situated in [ANSWER] and are an inhabitant of
{'AND': [['Q720519', 'P17', {'concept': 'Q15617994'}], ['Q2834520', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?r WHERE { resource:Q2834520 property:P27 ?r . resource:Q720519 property:P17 ?r . ?r rdf:type ontology:Q15617994 }
France
Ruch Alexis Grüss are situated in France and are an inhabitant of
France
action filter_type
action intersection
action find
entity Ruch
relation country
action find
entity Alexis Grüss
relation country of citizenship
type designation for an administrative territorial entity
{'AND': [['Ruch', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Alexis Grüss', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?r WHERE { resource:Alexis_Grüss property:country_of_citizenship ?r . resource:Ruch property:country ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q15617994 Q1048835
USER
Which political territories have diplomatic relations with min number of administrative territories ?
(c(Q1048835),P530,c(Q15617994))
action argmin
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ( MIN ( ?f ) AS ?g ) { SELECT DISTINCT ?x ( COUNT ( ?k ) AS ?f ) WHERE { ?x property:P530 ?k . ?x rdf:type ontology:Q1048835 . ?k rdf:type ontology:Q15617994 } GROUP BY ?x } } . { SELECT DISTINCT ?j ( COUNT ( ?a ) AS ?b ) WHERE { ?j rdf:type ontology:Q1048835 . ?a rdf:type ontology:Q15617994 . ?j property:P530 ?a } GROUP BY ?j } . FILTER ( ?b = ?g ) }
action argmin
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ( MIN ( ?f ) AS ?g ) { SELECT DISTINCT ?x ( COUNT ( ?k ) AS ?f ) WHERE { ?x property:diplomatic_relation ?k . ?x rdf:type ontology:political_territorial_entity . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?x } } . { SELECT DISTINCT ?j ( COUNT ( ?a ) AS ?b ) WHERE { ?j rdf:type ontology:political_territorial_entity . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j property:diplomatic_relation ?a } GROUP BY ?j } . FILTER ( ?b = ?g ) }
[]
designation for an administrative territorial entity political territorial entity
Q1000 Q769 Q691
SYSTEM
Gabon, Grenada, Papua New Guinea
Q1000 Q781 Q778 Q769 Q685 Q691
(c(Q1048835),P530,c(Q15617994))
action argmin
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
[ANSWERS] have diplomatic relations with min number of administrative territories
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ( MIN ( ?f ) AS ?g ) { SELECT DISTINCT ?x ( COUNT ( ?k ) AS ?f ) WHERE { ?x property:P530 ?k . ?x rdf:type ontology:Q1048835 . ?k rdf:type ontology:Q15617994 } GROUP BY ?x } } . { SELECT DISTINCT ?j ( COUNT ( ?a ) AS ?b ) WHERE { ?j rdf:type ontology:Q1048835 . ?a rdf:type ontology:Q15617994 . ?j property:P530 ?a } GROUP BY ?j } . FILTER ( ?b = ?g ) }
Gabon Antigua and Barbuda The Bahamas Grenada Solomon Islands Papua New Guinea
Gabon, Grenada and Papua New Guinea have diplomatic relations with min number of administrative territories
Gabon Grenada Papua New Guinea
action argmin
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ( MIN ( ?f ) AS ?g ) { SELECT DISTINCT ?x ( COUNT ( ?k ) AS ?f ) WHERE { ?x property:diplomatic_relation ?k . ?x rdf:type ontology:political_territorial_entity . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?x } } . { SELECT DISTINCT ?j ( COUNT ( ?a ) AS ?b ) WHERE { ?j rdf:type ontology:political_territorial_entity . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j property:diplomatic_relation ?a } GROUP BY ?j } . FILTER ( ?b = ?g ) }
[]
Clarification
Comparative|Count over More/Less|Single entity type|Indirect
P27
Q1048835 Q502895
USER
How many political territories are more number of people an inhabitant of than that political territory ?
(c(Q502895),P27,c(Q1048835))
[{'concept': 'Q502895'}, 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { ?z property:P27 ?y . ?z rdf:type ontology:Q502895 . ?y rdf:type ontology:Q1048835 }
[{'concept': 'common name'}, 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { ?z property:country_of_citizenship ?y . ?z rdf:type ontology:common_name . ?y rdf:type ontology:political_territorial_entity }
[]
political territorial entity common name
Comparative|Count over More/Less|Single entity type|Clarification
Q769
SYSTEM
Did you mean Grenada ?
(c(Q502895),P27,c(Q1048835))
[ANSWER]
[{'concept': 'Q502895'}, 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { ?z property:P27 ?y . ?z rdf:type ontology:Q502895 . ?y rdf:type ontology:Q1048835 }
Did you mean Grenada ?
Grenada
[{'concept': 'common name'}, 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { ?z property:country_of_citizenship ?y . ?z rdf:type ontology:common_name . ?y rdf:type ontology:political_territorial_entity }
[]
Comparative Reasoning (Count) (All)
USER
Yes
(c(Q502895),P27,c(Q1048835))
[{'concept': 'Q502895'}, 'P27', {'concept': 'Q1048835'}]
[{'concept': 'common name'}, 'country of citizenship', {'concept': 'political territorial entity'}]
[]
SYSTEM
14
Q1000 Q1747689 Q838261 Q183 Q691 Q664 Q766 Q781 Q5705 Q16 Q35 Q40 Q778 Q408
(c(Q502895),P27,c(Q1048835))
[ANSWER]
[{'concept': 'Q502895'}, 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { ?z property:P27 ?y . ?z rdf:type ontology:Q502895 . ?y rdf:type ontology:Q1048835 }
Gabon Ancient Rome Federal Republic of Yugoslavia Germany Papua New Guinea New Zealand Jamaica Antigua and Barbuda Catalonia Canada Denmark Austria The Bahamas Australia
14
[{'concept': 'common name'}, 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { ?z property:country_of_citizenship ?y . ?z rdf:type ontology:common_name . ?y rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q1048835 Q1048835
USER
How many political territories have a diplomatic relationship with atleast 6 political territories ?
(c(Q1048835),P530,c(Q1048835))
action count
action atleast
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
value 6
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?i ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?e ) AS ?t ) WHERE { ?b property:P530 ?e . ?b rdf:type ontology:Q1048835 . ?e rdf:type ontology:Q1048835 } GROUP BY ?b } . FILTER ( ?t >= 6 ) }
action count
action atleast
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
value 6
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?i ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?e ) AS ?t ) WHERE { ?b property:diplomatic_relation ?e . ?b rdf:type ontology:political_territorial_entity . ?e rdf:type ontology:political_territorial_entity } GROUP BY ?b } . FILTER ( ?t >= 6 ) }
[]
political territorial entity political territorial entity
SYSTEM
2
Q183 Q408
(c(Q1048835),P530,c(Q1048835))
action count
action atleast
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
value 6
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?i ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?e ) AS ?t ) WHERE { ?b property:P530 ?e . ?b rdf:type ontology:Q1048835 . ?e rdf:type ontology:Q1048835 } GROUP BY ?b } . FILTER ( ?t >= 6 ) }
Germany Australia
2
action count
action atleast
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
value 6
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?i ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?e ) AS ?t ) WHERE { ?b property:diplomatic_relation ?e . ?b rdf:type ontology:political_territorial_entity . ?e rdf:type ontology:political_territorial_entity } GROUP BY ?b } . FILTER ( ?t >= 6 ) }
[]