Simple Question (Direct)
Simple Question
Q23015694
P21
Q290
USER
Which sex does Alexandre Claude Louis Lavalley belong to ?
(Q23015694,P21,c(Q290))
action filter_type
action find
entity Q23015694
relation P21
type Q290
['Q23015694', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?s WHERE { resource:Q23015694 property:P21 ?s . ?s rdf:type ontology:Q290 }
Alexandre Claude Louis Lavalley
action filter_type
action find
entity Alexandre Claude Louis Lavalley
relation gender
type sex
['Alexandre Claude Louis Lavalley', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?s WHERE { resource:Alexandre_Claude_Louis_Lavalley property:gender ?s . ?s rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q23015694,P21,c(Q290))
action filter_type
action find
entity Q23015694
relation P21
type Q290
Alexandre Claude Louis Lavalley belongs to a [ANSWER]
['Q23015694', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?s WHERE { resource:Q23015694 property:P21 ?s . ?s rdf:type ontology:Q290 }
male
Alexandre Claude Louis Lavalley belongs to a male
male
action filter_type
action find
entity Alexandre Claude Louis Lavalley
relation gender
type sex
['Alexandre Claude Louis Lavalley', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?s WHERE { resource:Alexandre_Claude_Louis_Lavalley property:gender ?s . ?s rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q23015694
P69
Q2668072
USER
What is the collection where Alexandre Claude Louis Lavalley was educated ?
(Q23015694,P69,c(Q2668072))
action filter_type
action find
entity Q23015694
relation P69
type Q2668072
['Q23015694', 'P69', {'concept': 'Q2668072'}]
SELECT DISTINCT ?r WHERE { resource:Q23015694 property:P69 ?r . ?r rdf:type ontology:Q2668072 }
Alexandre Claude Louis Lavalley
action filter_type
action find
entity Alexandre Claude Louis Lavalley
relation educated at
type collection
['Alexandre Claude Louis Lavalley', 'educated at', {'concept': 'collection'}]
SELECT DISTINCT ?r WHERE { resource:Alexandre_Claude_Louis_Lavalley property:educated_at ?r . ?r rdf:type ontology:collection }
[]
collection
Q273593
SYSTEM
École nationale supérieure des Beaux-Arts
Q273593
(Q23015694,P69,c(Q2668072))
action filter_type
action find
entity Q23015694
relation P69
type Q2668072
The collection Alexandre Claude Louis Lavalley was educated is the [ANSWER]
['Q23015694', 'P69', {'concept': 'Q2668072'}]
SELECT DISTINCT ?r WHERE { resource:Q23015694 property:P69 ?r . ?r rdf:type ontology:Q2668072 }
École nationale supérieure des Beaux-Arts
The collection Alexandre Claude Louis Lavalley was educated is the École nationale supérieure des Beaux-Arts
École nationale supérieure des Beaux-Arts
action filter_type
action find
entity Alexandre Claude Louis Lavalley
relation educated at
type collection
['Alexandre Claude Louis Lavalley', 'educated at', {'concept': 'collection'}]
SELECT DISTINCT ?r WHERE { resource:Alexandre_Claude_Louis_Lavalley property:educated_at ?r . ?r rdf:type ontology:collection }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q23015694
P166
Q618779
USER
What was awarded to Alexandre Claude Louis Lavalley ?
(Q23015694,P166,c(Q618779))
action filter_type
action find
entity Q23015694
relation P166
type Q618779
['Q23015694', 'P166', {'concept': 'Q618779'}]
SELECT DISTINCT ?y WHERE { resource:Q23015694 property:P166 ?y . ?y rdf:type ontology:Q618779 }
Alexandre Claude Louis Lavalley
action filter_type
action find
entity Alexandre Claude Louis Lavalley
relation award received
type award
['Alexandre Claude Louis Lavalley', 'award received', {'concept': 'award'}]
SELECT DISTINCT ?y WHERE { resource:Alexandre_Claude_Louis_Lavalley property:award_received ?y . ?y rdf:type ontology:award }
[]
award
Q576434
SYSTEM
Prix de Rome
Q576434
(Q23015694,P166,c(Q618779))
action filter_type
action find
entity Q23015694
relation P166
type Q618779
[ANSWER] was awarded to Alexandre Claude Louis Lavalley
['Q23015694', 'P166', {'concept': 'Q618779'}]
SELECT DISTINCT ?y WHERE { resource:Q23015694 property:P166 ?y . ?y rdf:type ontology:Q618779 }
Prix de Rome
Prix de Rome was awarded to Alexandre Claude Louis Lavalley
Prix de Rome
action filter_type
action find
entity Alexandre Claude Louis Lavalley
relation award received
type award
['Alexandre Claude Louis Lavalley', 'award received', {'concept': 'award'}]
SELECT DISTINCT ?y WHERE { resource:Alexandre_Claude_Louis_Lavalley property:award_received ?y . ?y rdf:type ontology:award }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q23015694
P19
Q56061
USER
Which administrative territory was that person born at ?
(Q576434,P19,c(Q56061))
action filter_type
action find
entity Q23015694
relation P19
type Q56061
['Q576434', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?v WHERE { resource:Q23015694 property:P19 ?v . ?v rdf:type ontology:Q56061 }
Alexandre Claude Louis Lavalley
action filter_type
action find
entity Alexandre Claude Louis Lavalley
relation place of birth
type administrative territorial entity
['Prix de Rome', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:Alexandre_Claude_Louis_Lavalley property:place_of_birth ?v . ?v rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q90
SYSTEM
Paris
Q90
(Q576434,P19,c(Q56061))
action filter_type
action find
entity Q23015694
relation P19
type Q56061
That person was born in [ANSWER]
['Q576434', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?v WHERE { resource:Q23015694 property:P19 ?v . ?v rdf:type ontology:Q56061 }
Paris
That person was born in Paris
Paris
action filter_type
action find
entity Alexandre Claude Louis Lavalley
relation place of birth
type administrative territorial entity
['Prix de Rome', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:Alexandre_Claude_Louis_Lavalley property:place_of_birth ?v . ?v rdf:type ontology:administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q90 Q142 Q83202
P17
Q15617994
USER
Is that administrative territory located in France and Ötigheim ?
(Q90,P17,Q142) (Q90,P17,Q83202)
action is_in
entity Q90
action intersection
action find_reverse
entity Q142
relation P17
action find_reverse
entity Q83202
relation P17
['Q90', 'P17', 'Q142'] ['Q90', 'P17', 'Q83202']
ASK WHERE { resource:Q90 property:P17 resource:Q142 . resource:Q90 property:P17 resource:Q83202 }
Paris France Ötigheim
action is_in
entity Paris
action intersection
action find_reverse
entity France
relation country
action find_reverse
entity Ötigheim
relation country
['Paris', 'country', 'France'] ['Paris', 'country', 'Ötigheim']
ASK WHERE { resource:Paris property:country resource:France . resource:Paris property:country resource:Ötigheim }
[]
designation for an administrative territorial entity
SYSTEM
YES and NO respectively
(Q90,P17,Q142) (Q90,P17,Q83202)
action is_in
entity Q90
action intersection
action find_reverse
entity Q142
relation P17
action find_reverse
entity Q83202
relation P17
[ANSWER]
['Q90', 'P17', 'Q142'] ['Q90', 'P17', 'Q83202']
ASK WHERE { resource:Q90 property:P17 resource:Q142 . resource:Q90 property:P17 resource:Q83202 }
YES and NO respectively
action is_in
entity Paris
action intersection
action find_reverse
entity France
relation country
action find_reverse
entity Ötigheim
relation country
['Paris', 'country', 'France'] ['Paris', 'country', 'Ötigheim']
ASK WHERE { resource:Paris property:country resource:France . resource:Paris property:country resource:Ötigheim }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q6745732 Q83202
P17
Q1048835
USER
Which political territories are Ötigheim or Mamma Cannes situated in ?
OR((Q83202,P17,c(Q1048835)), (Q6745732,P17,c(Q1048835)))
action filter_type
action union
action find
entity Q83202
relation P17
action find
entity Q6745732
relation P17
type Q1048835
{'OR': [['Q83202', 'P17', {'concept': 'Q1048835'}], ['Q6745732', 'P17', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Q83202 property:P17 ?k } UNION { resource:Q6745732 property:P17 ?k } } . ?k rdf:type ontology:Q1048835 }
Mamma Cannes Ötigheim
action filter_type
action union
action find
entity Ötigheim
relation country
action find
entity Mamma Cannes
relation country
type political territorial entity
{'OR': [['Ötigheim', 'country', {'concept': 'political territorial entity'}], ['Mamma Cannes', 'country', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Ötigheim property:country ?k } UNION { resource:Mamma_Cannes property:country ?k } } . ?k rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q769 Q183
SYSTEM
Grenada, Germany
Q769 Q183
OR((Q83202,P17,c(Q1048835)), (Q6745732,P17,c(Q1048835)))
action filter_type
action union
action find
entity Q83202
relation P17
action find
entity Q6745732
relation P17
type Q1048835
[ANSWERS]
{'OR': [['Q83202', 'P17', {'concept': 'Q1048835'}], ['Q6745732', 'P17', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Q83202 property:P17 ?k } UNION { resource:Q6745732 property:P17 ?k } } . ?k rdf:type ontology:Q1048835 }
Grenada Germany
Which political territories are Ötigheim or Mamma Cannes situated in
Grenada Germany
action filter_type
action union
action find
entity Ötigheim
relation country
action find
entity Mamma Cannes
relation country
type political territorial entity
{'OR': [['Ötigheim', 'country', {'concept': 'political territorial entity'}], ['Mamma Cannes', 'country', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Ötigheim property:country ?k } UNION { resource:Mamma_Cannes property:country ?k } } . ?k rdf:type ontology:political_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q732563
P530
Q1048835
USER
Do Rio Acima have ambassadorial relations with those ones ?
(Q732563,P530,Q769) (Q732563,P530,Q183)
action is_in
entity prev_answer
action find
entity Q732563
relation P530
['Q732563', 'P530', 'Q769'] ['Q732563', 'P530', 'Q183']
ASK WHERE { VALUES ( ?z ) { ( resource:Q769 ) ( resource:Q183 ) } . resource:Q732563 property:P530 ?z }
Rio Acima
action is_in
entity prev_answer
action find
entity Rio Acima
relation diplomatic relation
['Rio Acima', 'diplomatic relation', 'Grenada'] ['Rio Acima', 'diplomatic relation', 'Germany']
ASK WHERE { VALUES ( ?z ) { ( resource:Grenada ) ( resource:Germany ) } . resource:Rio_Acima property:diplomatic_relation ?z }
[]
political territorial entity
SYSTEM
NO
(Q732563,P530,Q769) (Q732563,P530,Q183)
action is_in
entity prev_answer
action find
entity Q732563
relation P530
[ANSWER]
['Q732563', 'P530', 'Q769'] ['Q732563', 'P530', 'Q183']
ASK WHERE { VALUES ( ?z ) { ( resource:Q769 ) ( resource:Q183 ) } . resource:Q732563 property:P530 ?z }
No
action is_in
entity prev_answer
action find
entity Rio Acima
relation diplomatic relation
['Rio Acima', 'diplomatic relation', 'Grenada'] ['Rio Acima', 'diplomatic relation', 'Germany']
ASK WHERE { VALUES ( ?z ) { ( resource:Grenada ) ( resource:Germany ) } . resource:Rio_Acima property:diplomatic_relation ?z }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q4201131 Q576434
P17
Q15617994
USER
Which administrative territories are Prix de Rome or Kejobong situated in ?
OR((Q576434,P17,c(Q15617994)), (Q4201131,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q576434
relation P17
action find
entity Q4201131
relation P17
type Q15617994
{'OR': [['Q576434', 'P17', {'concept': 'Q15617994'}], ['Q4201131', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Q576434 property:P17 ?b } UNION { resource:Q4201131 property:P17 ?b } } . ?b rdf:type ontology:Q15617994 }
Kejobong Prix de Rome
action filter_type
action union
action find
entity Prix de Rome
relation country
action find
entity Kejobong
relation country
type designation for an administrative territorial entity
{'OR': [['Prix de Rome', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Kejobong', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Prix_de_Rome property:country ?b } UNION { resource:Kejobong property:country ?b } } . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142 Q252
SYSTEM
France, Indonesia
Q142 Q252
OR((Q576434,P17,c(Q15617994)), (Q4201131,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q576434
relation P17
action find
entity Q4201131
relation P17
type Q15617994
Prix de Rome or Kejobong are situated in [ANSWERS]
{'OR': [['Q576434', 'P17', {'concept': 'Q15617994'}], ['Q4201131', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Q576434 property:P17 ?b } UNION { resource:Q4201131 property:P17 ?b } } . ?b rdf:type ontology:Q15617994 }
France Indonesia
Prix de Rome or Kejobong are situated in France and Indonesia
France Indonesia
action filter_type
action union
action find
entity Prix de Rome
relation country
action find
entity Kejobong
relation country
type designation for an administrative territorial entity
{'OR': [['Prix de Rome', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Kejobong', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Prix_de_Rome property:country ?b } UNION { resource:Kejobong property:country ?b } } . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q15617994 Q15617994
USER
Which administrative territories holds diplomatic relationship with max number of administrative territories ?
(c(Q15617994),P530,Q953)
action argmax
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
[{'concept': 'Q15617994'}, 'P530', 'Q953']
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( MAX ( ?l ) AS ?r ) { SELECT DISTINCT ?x ( COUNT ( ?q ) AS ?l ) WHERE { ?x rdf:type ontology:Q15617994 . ?q rdf:type ontology:Q15617994 . ?x property:P530 ?q } GROUP BY ?x } } . { SELECT DISTINCT ?y ( COUNT ( ?k ) AS ?g ) WHERE { ?y rdf:type ontology:Q15617994 . ?k rdf:type ontology:Q15617994 . ?y property:P530 ?k } GROUP BY ?y } . FILTER ( ?g = ?r ) }
action argmax
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Zambia']
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( MAX ( ?l ) AS ?r ) { SELECT DISTINCT ?x ( COUNT ( ?q ) AS ?l ) WHERE { ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x property:diplomatic_relation ?q } GROUP BY ?x } } . { SELECT DISTINCT ?y ( COUNT ( ?k ) AS ?g ) WHERE { ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y property:diplomatic_relation ?k } GROUP BY ?y } . FILTER ( ?g = ?r ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q38
SYSTEM
Italy
Q38
(c(Q15617994),P530,Q953)
action argmax
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
[ANSWER] holds diplomatic relationship with max number of administrative territories
[{'concept': 'Q15617994'}, 'P530', 'Q953']
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( MAX ( ?l ) AS ?r ) { SELECT DISTINCT ?x ( COUNT ( ?q ) AS ?l ) WHERE { ?x rdf:type ontology:Q15617994 . ?q rdf:type ontology:Q15617994 . ?x property:P530 ?q } GROUP BY ?x } } . { SELECT DISTINCT ?y ( COUNT ( ?k ) AS ?g ) WHERE { ?y rdf:type ontology:Q15617994 . ?k rdf:type ontology:Q15617994 . ?y property:P530 ?k } GROUP BY ?y } . FILTER ( ?g = ?r ) }
Italy
Italy holds diplomatic relationship with max number of administrative territories
Italy
action argmax
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Zambia']
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( MAX ( ?l ) AS ?r ) { SELECT DISTINCT ?x ( COUNT ( ?q ) AS ?l ) WHERE { ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x property:diplomatic_relation ?q } GROUP BY ?x } } . { SELECT DISTINCT ?y ( COUNT ( ?k ) AS ?g ) WHERE { ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y property:diplomatic_relation ?k } GROUP BY ?y } . FILTER ( ?g = ?r ) }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q38 Q907451
P27
Q502895
USER
Is Egisto Tango a citizen of that administrative territory ?
(Q907451,P27,Q38)
action is_in
entity Q38
action find
entity Q907451
relation P27
['Q907451', 'P27', 'Q38']
ASK WHERE { resource:Q907451 property:P27 resource:Q38 }
Italy Egisto Tango
action is_in
entity Italy
action find
entity Egisto Tango
relation country of citizenship
['Egisto Tango', 'country of citizenship', 'Italy']
ASK WHERE { resource:Egisto_Tango property:country_of_citizenship resource:Italy }
[]
common name
SYSTEM
YES
(Q907451,P27,Q38)
action is_in
entity Q38
action find
entity Q907451
relation P27
[ANSWER]
['Q907451', 'P27', 'Q38']
ASK WHERE { resource:Q907451 property:P27 resource:Q38 }
Yes
action is_in
entity Italy
action find
entity Egisto Tango
relation country of citizenship
['Egisto Tango', 'country of citizenship', 'Italy']
ASK WHERE { resource:Egisto_Tango property:country_of_citizenship resource:Italy }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q1000
P530
Q1048835 Q15617994
USER
Which political territories have diplomatic relationships with approximately the same number of administrative territories as Gabon ?
(c(Q15617994),P530,c(Q1048835))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q1000
relation P530
type Q1048835
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?e ) AS ?y ) WHERE { ?g property:P530 ?e . ?g rdf:type ontology:Q1048835 . ?e rdf:type ontology:Q15617994 } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?r ) WHERE { resource:Q1000 property:P530 ?l . ?l rdf:type ontology:Q1048835 } } . FILTER ( ?y = ?r ) }
Gabon
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Gabon
relation diplomatic relation
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?e ) AS ?y ) WHERE { ?g property:diplomatic_relation ?e . ?g rdf:type ontology:political_territorial_entity . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?r ) WHERE { resource:Gabon property:diplomatic_relation ?l . ?l rdf:type ontology:political_territorial_entity } } . FILTER ( ?y = ?r ) }
[]
political territorial entity designation for an administrative territorial entity
Q35 Q16 Q40
SYSTEM
Denmark, Canada, Austria
Q1000 Q40 Q781 Q778 Q769 Q685 Q35 Q691 Q16 Q664 Q766
(c(Q15617994),P530,c(Q1048835))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q1000
relation P530
type Q1048835
[ANSWERS] have diplomatic relationships with approximately the same number of administrative territories as Gabon
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?e ) AS ?y ) WHERE { ?g property:P530 ?e . ?g rdf:type ontology:Q1048835 . ?e rdf:type ontology:Q15617994 } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?r ) WHERE { resource:Q1000 property:P530 ?l . ?l rdf:type ontology:Q1048835 } } . FILTER ( ?y = ?r ) }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea Canada New Zealand Jamaica
Denmark, Canada and Austria have diplomatic relationships with approximately the same number of administrative territories as Gabon
Denmark Canada Austria
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Gabon
relation diplomatic relation
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?e ) AS ?y ) WHERE { ?g property:diplomatic_relation ?e . ?g rdf:type ontology:political_territorial_entity . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?r ) WHERE { resource:Gabon property:diplomatic_relation ?l . ?l rdf:type ontology:political_territorial_entity } } . FILTER ( ?y = ?r ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q769
P530
Q1048835 Q15617994
USER
And also tell me about Grenada?
(c(Q15617994),P530,c(Q1048835))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q769
relation P530
type Q1048835
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?m ) AS ?p ) WHERE { ?e property:P530 ?m . ?e rdf:type ontology:Q1048835 . ?m rdf:type ontology:Q15617994 } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?l ) WHERE { ?u rdf:type ontology:Q1048835 . resource:Q769 property:P530 ?u } } . FILTER ( ?p = ?l ) }
Grenada
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Grenada
relation diplomatic relation
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?m ) AS ?p ) WHERE { ?e property:diplomatic_relation ?m . ?e rdf:type ontology:political_territorial_entity . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?l ) WHERE { ?u rdf:type ontology:political_territorial_entity . resource:Grenada property:diplomatic_relation ?u } } . FILTER ( ?p = ?l ) }
[]
political territorial entity designation for an administrative territorial entity
Q35 Q16 Q40
SYSTEM
Denmark, Canada, Austria
Q1000 Q40 Q781 Q778 Q769 Q685 Q35 Q691 Q16 Q664 Q766
(c(Q15617994),P530,c(Q1048835))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q769
relation P530
type Q1048835
[ANSWERS]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?m ) AS ?p ) WHERE { ?e property:P530 ?m . ?e rdf:type ontology:Q1048835 . ?m rdf:type ontology:Q15617994 } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?l ) WHERE { ?u rdf:type ontology:Q1048835 . resource:Q769 property:P530 ?u } } . FILTER ( ?p = ?l ) }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea Canada New Zealand Jamaica
Denmark Canada Austria
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Grenada
relation diplomatic relation
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?m ) AS ?p ) WHERE { ?e property:diplomatic_relation ?m . ?e rdf:type ontology:political_territorial_entity . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?l ) WHERE { ?u rdf:type ontology:political_territorial_entity . resource:Grenada property:diplomatic_relation ?u } } . FILTER ( ?p = ?l ) }
[]
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
Q40
SYSTEM
Did you mean Austria ?
(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 Austria ?
Austria
[{'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
3
Q183 Q16 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 }
Germany Canada Australia
3
[{'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 }
[]