Simple Question (Direct)
Simple Question
Q4724704
P2416
Q31629
USER
Which type of sport was Ali Baghbanbashi a contestant of ?
(Q4724704,P2416,c(Q31629))
action filter_type
action find
entity Q4724704
relation P2416
type Q31629
['Q4724704', 'P2416', {'concept': 'Q31629'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q31629 . resource:Q4724704 property:P2416 ?f }
Ali Baghbanbashi
action filter_type
action find
entity Ali Baghbanbashi
relation sports discipline competed in
type type of sport
['Ali Baghbanbashi', 'sports discipline competed in', {'concept': 'type of sport'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:type_of_sport . resource:Ali_Baghbanbashi property:sports_discipline_competed_in ?f }
[]
type of sport
Q40244
SYSTEM
marathon
Q40244
(Q4724704,P2416,c(Q31629))
action filter_type
action find
entity Q4724704
relation P2416
type Q31629
The [ANSWER] was Ali Baghbanbashi a contestant of
['Q4724704', 'P2416', {'concept': 'Q31629'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q31629 . resource:Q4724704 property:P2416 ?f }
marathon
The marathon was Ali Baghbanbashi a contestant of
marathon
action filter_type
action find
entity Ali Baghbanbashi
relation sports discipline competed in
type type of sport
['Ali Baghbanbashi', 'sports discipline competed in', {'concept': 'type of sport'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:type_of_sport . resource:Ali_Baghbanbashi property:sports_discipline_competed_in ?f }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q4724704
P27
Q15617994
USER
Which administrative territory is the native country of Ali Baghbanbashi ?
(Q4724704,P27,c(Q15617994))
action filter_type
action find
entity Q4724704
relation P27
type Q15617994
['Q4724704', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?c WHERE { resource:Q4724704 property:P27 ?c . ?c rdf:type ontology:Q15617994 }
Ali Baghbanbashi
action filter_type
action find
entity Ali Baghbanbashi
relation country of citizenship
type designation for an administrative territorial entity
['Ali Baghbanbashi', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { resource:Ali_Baghbanbashi property:country_of_citizenship ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q794
SYSTEM
Iran
Q794
(Q4724704,P27,c(Q15617994))
action filter_type
action find
entity Q4724704
relation P27
type Q15617994
[ANSWER] is the native country of Ali Baghbanbashi
['Q4724704', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?c WHERE { resource:Q4724704 property:P27 ?c . ?c rdf:type ontology:Q15617994 }
Iran
Iran is the native country of Ali Baghbanbashi
Iran
action filter_type
action find
entity Ali Baghbanbashi
relation country of citizenship
type designation for an administrative territorial entity
['Ali Baghbanbashi', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { resource:Ali_Baghbanbashi property:country_of_citizenship ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q4898329
Q15617994
USER
And what about Betsy Sholl?
(Q4898329,P27,c(Q15617994))
action filter_type
action find
entity Q4898329
relation P27
type Q15617994
['Q4898329', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q15617994 . resource:Q4898329 property:P27 ?u }
Betsy Sholl
action filter_type
action find
entity Betsy Sholl
relation country of citizenship
type designation for an administrative territorial entity
['Betsy Sholl', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Betsy_Sholl property:country_of_citizenship ?u }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
(Q4898329,P27,c(Q15617994))
action filter_type
action find
entity Q4898329
relation P27
type Q15617994
[ANSWER]
['Q4898329', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q15617994 . resource:Q4898329 property:P27 ?u }
United States of America
United States of America
action filter_type
action find
entity Betsy Sholl
relation country of citizenship
type designation for an administrative territorial entity
['Betsy Sholl', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Betsy_Sholl property:country_of_citizenship ?u }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q30 Q2261476
P27
Q502895
USER
Is Scoville Jenkins a citizen of that administrative territory ?
(Q2261476,P27,Q30)
action is_in
entity Q30
action find
entity Q2261476
relation P27
['Q2261476', 'P27', 'Q30']
ASK WHERE { resource:Q2261476 property:P27 resource:Q30 }
United States of America Scoville Jenkins
action is_in
entity United States of America
action find
entity Scoville Jenkins
relation country of citizenship
['Scoville Jenkins', 'country of citizenship', 'United States of America']
ASK WHERE { resource:Scoville_Jenkins property:country_of_citizenship resource:United_States_of_America }
[]
common name
SYSTEM
YES
(Q2261476,P27,Q30)
action is_in
entity Q30
action find
entity Q2261476
relation P27
[ANSWER]
['Q2261476', 'P27', 'Q30']
ASK WHERE { resource:Q2261476 property:P27 resource:Q30 }
Yes
action is_in
entity United States of America
action find
entity Scoville Jenkins
relation country of citizenship
['Scoville Jenkins', 'country of citizenship', 'United States of America']
ASK WHERE { resource:Scoville_Jenkins property:country_of_citizenship resource:United_States_of_America }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q794 Q408 Q183
P530
Q1048835
USER
Does Iran have ambassadorial relations with Australia and Germany ?
(Q794,P530,Q408) (Q794,P530,Q183)
action is_in
entity Q794
action intersection
action find_reverse
entity Q408
relation P530
action find_reverse
entity Q183
relation P530
['Q794', 'P530', 'Q408'] ['Q794', 'P530', 'Q183']
ASK WHERE { resource:Q794 property:P530 resource:Q408 . resource:Q794 property:P530 resource:Q183 }
Iran Australia Germany
action is_in
entity Iran
action intersection
action find_reverse
entity Australia
relation diplomatic relation
action find_reverse
entity Germany
relation diplomatic relation
['Iran', 'diplomatic relation', 'Australia'] ['Iran', 'diplomatic relation', 'Germany']
ASK WHERE { resource:Iran property:diplomatic_relation resource:Australia . resource:Iran property:diplomatic_relation resource:Germany }
[]
political territorial entity
SYSTEM
YES
(Q794,P530,Q408) (Q794,P530,Q183)
action is_in
entity Q794
action intersection
action find_reverse
entity Q408
relation P530
action find_reverse
entity Q183
relation P530
[ANSWER]
['Q794', 'P530', 'Q408'] ['Q794', 'P530', 'Q183']
ASK WHERE { resource:Q794 property:P530 resource:Q408 . resource:Q794 property:P530 resource:Q183 }
Yes
action is_in
entity Iran
action intersection
action find_reverse
entity Australia
relation diplomatic relation
action find_reverse
entity Germany
relation diplomatic relation
['Iran', 'diplomatic relation', 'Australia'] ['Iran', 'diplomatic relation', 'Germany']
ASK WHERE { resource:Iran property:diplomatic_relation resource:Australia . resource:Iran property:diplomatic_relation resource:Germany }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q794 Q458
P530
Q15617994
USER
How many administrative territories have ambassadorial relations with Iran and European Union ?
(c(Q15617994),P530,Q794) (c(Q15617994),P530,Q458)
action count
action intersection
action filter_type
action find_reverse
entity Q794
relation P530
type Q15617994
action filter_type
action find_reverse
entity Q458
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', 'Q794'] [{'concept': 'Q15617994'}, 'P530', 'Q458']
SELECT DISTINCT ( COUNT ( ?i ) AS ?v ) WHERE { ?i rdf:type ontology:Q15617994 . ?i property:P530 resource:Q794 . ?i property:P530 resource:Q458 . ?i rdf:type ontology:Q15617994 }
Iran European Union
action count
action intersection
action filter_type
action find_reverse
entity Iran
relation diplomatic relation
type designation for an administrative territorial entity
action filter_type
action find_reverse
entity European Union
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Iran'] [{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'European Union']
SELECT DISTINCT ( COUNT ( ?i ) AS ?v ) WHERE { ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?i property:diplomatic_relation resource:Iran . ?i property:diplomatic_relation resource:European_Union . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
2
Q155 Q184
(c(Q15617994),P530,Q794) (c(Q15617994),P530,Q458)
action count
action intersection
action filter_type
action find_reverse
entity Q794
relation P530
type Q15617994
action filter_type
action find_reverse
entity Q458
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', 'Q794'] [{'concept': 'Q15617994'}, 'P530', 'Q458']
SELECT DISTINCT ( COUNT ( ?i ) AS ?v ) WHERE { ?i rdf:type ontology:Q15617994 . ?i property:P530 resource:Q794 . ?i property:P530 resource:Q458 . ?i rdf:type ontology:Q15617994 }
Brazil Belarus
2
action count
action intersection
action filter_type
action find_reverse
entity Iran
relation diplomatic relation
type designation for an administrative territorial entity
action filter_type
action find_reverse
entity European Union
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Iran'] [{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'European Union']
SELECT DISTINCT ( COUNT ( ?i ) AS ?v ) WHERE { ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?i property:diplomatic_relation resource:Iran . ?i property:diplomatic_relation resource:European_Union . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q794
P610
Q14524493
USER
Which is the highest point of that administrative territory ?
action filter_type
action find
entity Q794
relation P610
type Q14524493
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q14524493 . resource:Q794 property:P610 ?c }
Iran
action filter_type
action find
entity Iran
relation highest point
type terrain
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:terrain . resource:Iran property:highest_point ?c }
[]
terrain
Q40758
SYSTEM
Mount Damavand
Q40758
action filter_type
action find
entity Q794
relation P610
type Q14524493
The highest point of that administrative territory is the [ANSWER]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q14524493 . resource:Q794 property:P610 ?c }
Mount Damavand
The highest point of that administrative territory is the Mount Damavand
Mount Damavand
action filter_type
action find
entity Iran
relation highest point
type terrain
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:terrain . resource:Iran property:highest_point ?c }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q2935036 Q183
P530 P27
Q15617994
USER
Which administrative territories holds diplomatic relationship with Germany and are Camille Pelissier a civilian of ?
AND((Q183,P530,c(Q15617994)), (Q2935036,P27,c(Q15617994)))
action filter_type
action intersection
action find
entity Q183
relation P530
action find
entity Q2935036
relation P27
type Q15617994
{'AND': [['Q183', 'P530', {'concept': 'Q15617994'}], ['Q2935036', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?j WHERE { resource:Q183 property:P530 ?j . resource:Q2935036 property:P27 ?j . ?j rdf:type ontology:Q15617994 }
Camille Pelissier Germany
action filter_type
action intersection
action find
entity Germany
relation diplomatic relation
action find
entity Camille Pelissier
relation country of citizenship
type designation for an administrative territorial entity
{'AND': [['Germany', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Camille Pelissier', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?j WHERE { resource:Germany property:diplomatic_relation ?j . resource:Camille_Pelissier property:country_of_citizenship ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142
SYSTEM
France
Q142
AND((Q183,P530,c(Q15617994)), (Q2935036,P27,c(Q15617994)))
action filter_type
action intersection
action find
entity Q183
relation P530
action find
entity Q2935036
relation P27
type Q15617994
[ANSWER] holds diplomatic relationship with Germany and are Camille Pelissier a civilian of
{'AND': [['Q183', 'P530', {'concept': 'Q15617994'}], ['Q2935036', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?j WHERE { resource:Q183 property:P530 ?j . resource:Q2935036 property:P27 ?j . ?j rdf:type ontology:Q15617994 }
France
France holds diplomatic relationship with Germany and are Camille Pelissier a civilian of
France
action filter_type
action intersection
action find
entity Germany
relation diplomatic relation
action find
entity Camille Pelissier
relation country of citizenship
type designation for an administrative territorial entity
{'AND': [['Germany', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Camille Pelissier', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?j WHERE { resource:Germany property:diplomatic_relation ?j . resource:Camille_Pelissier property:country_of_citizenship ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q40
P530
Q15617994 Q1048835
USER
Which political territories have tactful political relations with less number of administrative territories than Austria ?
(c(Q1048835),P530,c(Q15617994))
action less
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q40
relation P530
type Q15617994
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?b ) AS ?g ) WHERE { ?k property:P530 ?b . ?k rdf:type ontology:Q1048835 . ?b rdf:type ontology:Q15617994 } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?d ) WHERE { resource:Q40 property:P530 ?w . ?w rdf:type ontology:Q15617994 } } . FILTER ( ?g < ?d ) }
Austria
action less
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 Austria
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?b ) AS ?g ) WHERE { ?k property:diplomatic_relation ?b . ?k rdf:type ontology:political_territorial_entity . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?d ) WHERE { resource:Austria property:diplomatic_relation ?w . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?g < ?d ) }
[]
designation for an administrative territorial entity political territorial entity
Q35 Q664 Q1000
SYSTEM
Denmark, New Zealand, Gabon
Q1000 Q781 Q778 Q769 Q685 Q35 Q691 Q664 Q766
(c(Q1048835),P530,c(Q15617994))
action less
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q40
relation P530
type Q15617994
[ANSWERS] have tactful political relations with less number of administrative territories than Austria
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?b ) AS ?g ) WHERE { ?k property:P530 ?b . ?k rdf:type ontology:Q1048835 . ?b rdf:type ontology:Q15617994 } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?d ) WHERE { resource:Q40 property:P530 ?w . ?w rdf:type ontology:Q15617994 } } . FILTER ( ?g < ?d ) }
Gabon Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea New Zealand Jamaica
Denmark, New Zealand and Gabon have tactful political relations with less number of administrative territories than Austria
Denmark New Zealand Gabon
action less
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 Austria
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?b ) AS ?g ) WHERE { ?k property:diplomatic_relation ?b . ?k rdf:type ontology:political_territorial_entity . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?d ) WHERE { resource:Austria property:diplomatic_relation ?w . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?g < ?d ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q16
P530
Q15617994 Q1048835
USER
And what about Canada?
(c(Q1048835),P530,c(Q15617994))
action less
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q16
relation P530
type Q15617994
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?z ) AS ?e ) WHERE { ?u property:P530 ?z . ?z rdf:type ontology:Q15617994 . ?u rdf:type ontology:Q1048835 } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?t ) WHERE { resource:Q16 property:P530 ?n . ?n rdf:type ontology:Q15617994 } } . FILTER ( ?e < ?t ) }
Canada
action less
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 Canada
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?z ) AS ?e ) WHERE { ?u property:diplomatic_relation ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?u rdf:type ontology:political_territorial_entity } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?t ) WHERE { resource:Canada property:diplomatic_relation ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?e < ?t ) }
[]
designation for an administrative territorial entity political territorial entity
Q35 Q40 Q664
SYSTEM
Denmark, Austria, New Zealand
Q1000 Q40 Q781 Q778 Q769 Q685 Q35 Q691 Q664 Q766
(c(Q1048835),P530,c(Q15617994))
action less
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q16
relation P530
type Q15617994
[ANSWERS]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?z ) AS ?e ) WHERE { ?u property:P530 ?z . ?z rdf:type ontology:Q15617994 . ?u rdf:type ontology:Q1048835 } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?t ) WHERE { resource:Q16 property:P530 ?n . ?n rdf:type ontology:Q15617994 } } . FILTER ( ?e < ?t ) }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea New Zealand Jamaica
Denmark Austria New Zealand
action less
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 Canada
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?z ) AS ?e ) WHERE { ?u property:diplomatic_relation ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?u rdf:type ontology:political_territorial_entity } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?t ) WHERE { resource:Canada property:diplomatic_relation ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?e < ?t ) }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q4876169
P530
Q15617994
USER
Do Bealsmill have ambassadorial relations with those political territories ?
(Q4876169,P530,Q35) (Q4876169,P530,Q40) (Q4876169,P530,Q664)
action is_in
entity prev_answer
action find
entity Q4876169
relation P530
['Q4876169', 'P530', 'Q35'] ['Q4876169', 'P530', 'Q40'] ['Q4876169', 'P530', 'Q664']
ASK WHERE { resource:Q4876169 property:P530 ?y . VALUES ( ?y ) { ( resource:Q1000 ) ( resource:Q40 ) ( resource:Q781 ) } }
Bealsmill
action is_in
entity prev_answer
action find
entity Bealsmill
relation diplomatic relation
['Bealsmill', 'diplomatic relation', 'Denmark'] ['Bealsmill', 'diplomatic relation', 'Austria'] ['Bealsmill', 'diplomatic relation', 'New Zealand']
ASK WHERE { resource:Bealsmill property:diplomatic_relation ?y . VALUES ( ?y ) { ( resource:Gabon ) ( resource:Austria ) ( resource:Antigua_and_Barbuda ) } }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q4876169,P530,Q35) (Q4876169,P530,Q40) (Q4876169,P530,Q664)
action is_in
entity prev_answer
action find
entity Q4876169
relation P530
[ANSWER]
['Q4876169', 'P530', 'Q35'] ['Q4876169', 'P530', 'Q40'] ['Q4876169', 'P530', 'Q664']
ASK WHERE { resource:Q4876169 property:P530 ?y . VALUES ( ?y ) { ( resource:Q1000 ) ( resource:Q40 ) ( resource:Q781 ) } }
No
action is_in
entity prev_answer
action find
entity Bealsmill
relation diplomatic relation
['Bealsmill', 'diplomatic relation', 'Denmark'] ['Bealsmill', 'diplomatic relation', 'Austria'] ['Bealsmill', 'diplomatic relation', 'New Zealand']
ASK WHERE { resource:Bealsmill property:diplomatic_relation ?y . VALUES ( ?y ) { ( resource:Gabon ) ( resource:Austria ) ( resource:Antigua_and_Barbuda ) } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q1048835 Q1048835
USER
How many political territories are known to have diplomatic connections with exactly 6 political territories ?
(c(Q1048835),P530,c(Q1048835))
action count
action equal
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
value 6
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?l ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?d ) AS ?g ) WHERE { ?z property:P530 ?d . ?d rdf:type ontology:Q1048835 . ?z rdf:type ontology:Q1048835 } GROUP BY ?z } . FILTER ( ?g = 6 ) }
action count
action equal
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 ( ?z ) AS ?l ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?d ) AS ?g ) WHERE { ?z property:diplomatic_relation ?d . ?d rdf:type ontology:political_territorial_entity . ?z rdf:type ontology:political_territorial_entity } GROUP BY ?z } . FILTER ( ?g = 6 ) }
[]
political territorial entity political territorial entity
SYSTEM
1
Q183
(c(Q1048835),P530,c(Q1048835))
action count
action equal
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
value 6
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?l ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?d ) AS ?g ) WHERE { ?z property:P530 ?d . ?d rdf:type ontology:Q1048835 . ?z rdf:type ontology:Q1048835 } GROUP BY ?z } . FILTER ( ?g = 6 ) }
Germany
1
action count
action equal
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 ( ?z ) AS ?l ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?d ) AS ?g ) WHERE { ?z property:diplomatic_relation ?d . ?d rdf:type ontology:political_territorial_entity . ?z rdf:type ontology:political_territorial_entity } GROUP BY ?z } . FILTER ( ?g = 6 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q35
P36
Q56061
USER
What is the capital of Denmark ?
(Q35,P36,c(Q56061))
action filter_type
action find
entity Q35
relation P36
type Q56061
['Q35', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?a WHERE { resource:Q35 property:P36 ?a . ?a rdf:type ontology:Q56061 }
Denmark
action filter_type
action find
entity Denmark
relation capital
type administrative territorial entity
['Denmark', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:Denmark property:capital ?a . ?a rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1748
SYSTEM
Copenhagen
Q1748
(Q35,P36,c(Q56061))
action filter_type
action find
entity Q35
relation P36
type Q56061
The capital of Denmark is [ANSWER]
['Q35', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?a WHERE { resource:Q35 property:P36 ?a . ?a rdf:type ontology:Q56061 }
Copenhagen
The capital of Denmark is Copenhagen
Copenhagen
action filter_type
action find
entity Denmark
relation capital
type administrative territorial entity
['Denmark', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:Denmark property:capital ?a . ?a rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q156459
Q56061
USER
And also tell me about Pierce County?
(Q156459,P36,c(Q56061))
action filter_type
action find
entity Q156459
relation P36
type Q56061
['Q156459', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q56061 . resource:Q156459 property:P36 ?m }
Pierce County
action filter_type
action find
entity Pierce County
relation capital
type administrative territorial entity
['Pierce County', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:administrative_territorial_entity . resource:Pierce_County property:capital ?m }
[]
administrative territorial entity
Q199797
SYSTEM
Tacoma
Q199797
(Q156459,P36,c(Q56061))
action filter_type
action find
entity Q156459
relation P36
type Q56061
[ANSWER]
['Q156459', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q56061 . resource:Q156459 property:P36 ?m }
Tacoma
Tacoma
action filter_type
action find
entity Pierce County
relation capital
type administrative territorial entity
['Pierce County', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:administrative_territorial_entity . resource:Pierce_County property:capital ?m }
[]