Simple Question (Direct)
Simple Question
Q225183
P1376
Q20667921
USER
Which french administrative division has Bain-de-Bretagne as its capital ?
(Q225183,P1376,c(Q20667921))
action filter_type
action find
entity Q225183
relation P1376
type Q20667921
['Q225183', 'P1376', {'concept': 'Q20667921'}]
SELECT DISTINCT ?r WHERE { resource:Q225183 property:P1376 ?r . ?r rdf:type ontology:Q20667921 }
Bain-de-Bretagne
action filter_type
action find
entity Bain-de-Bretagne
relation capital of
type type of french administrative division
['Bain-de-Bretagne', 'capital of', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?r WHERE { resource:Bain-de-Bretagne property:capital_of ?r . ?r rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q1724359
SYSTEM
canton of Bain-de-Bretagne
Q1724359
(Q225183,P1376,c(Q20667921))
action filter_type
action find
entity Q225183
relation P1376
type Q20667921
The [ANSWER] has Bain-de-Bretagne as its capital
['Q225183', 'P1376', {'concept': 'Q20667921'}]
SELECT DISTINCT ?r WHERE { resource:Q225183 property:P1376 ?r . ?r rdf:type ontology:Q20667921 }
canton of Bain-de-Bretagne
The canton of Bain-de-Bretagne has Bain-de-Bretagne as its capital
canton of Bain-de-Bretagne
action filter_type
action find
entity Bain-de-Bretagne
relation capital of
type type of french administrative division
['Bain-de-Bretagne', 'capital of', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?r WHERE { resource:Bain-de-Bretagne property:capital_of ?r . ?r rdf:type ontology:type_of_french_administrative_division }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q225183
P17
Q15617994
USER
Which administrative territory is Bain-de-Bretagne located in ?
(Q225183,P17,c(Q15617994))
action filter_type
action find
entity Q225183
relation P17
type Q15617994
['Q225183', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?t WHERE { resource:Q225183 property:P17 ?t . ?t rdf:type ontology:Q15617994 }
Bain-de-Bretagne
action filter_type
action find
entity Bain-de-Bretagne
relation country
type designation for an administrative territorial entity
['Bain-de-Bretagne', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { resource:Bain-de-Bretagne property:country ?t . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142
SYSTEM
France
Q142
(Q225183,P17,c(Q15617994))
action filter_type
action find
entity Q225183
relation P17
type Q15617994
Which administrative territory is Bain-de-Bretagne located in
['Q225183', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?t WHERE { resource:Q225183 property:P17 ?t . ?t rdf:type ontology:Q15617994 }
France
Which administrative territory is Bain-de-Bretagne located in
France
action filter_type
action find
entity Bain-de-Bretagne
relation country
type designation for an administrative territorial entity
['Bain-de-Bretagne', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { resource:Bain-de-Bretagne property:country ?t . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q7380197
Q15617994
USER
And what about Rupal, Punjab?
(Q7380197,P17,c(Q15617994))
action filter_type
action find
entity Q7380197
relation P17
type Q15617994
['Q7380197', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { resource:Q7380197 property:P17 ?q . ?q rdf:type ontology:Q15617994 }
Rupal, Punjab
action filter_type
action find
entity Rupal, Punjab
relation country
type designation for an administrative territorial entity
['Rupal, Punjab', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:Rupal,_Punjab property:country ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q843
SYSTEM
Pakistan
Q843
(Q7380197,P17,c(Q15617994))
action filter_type
action find
entity Q7380197
relation P17
type Q15617994
[ANSWER]
['Q7380197', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { resource:Q7380197 property:P17 ?q . ?q rdf:type ontology:Q15617994 }
Pakistan
Pakistan
action filter_type
action find
entity Rupal, Punjab
relation country
type designation for an administrative territorial entity
['Rupal, Punjab', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:Rupal,_Punjab property:country ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Indirect
P495
Q15617994 Q2031291
USER
How many administrative territories are the origins of more number of releases than that administrative territory ?
(c(Q2031291),P495,c(Q15617994))
action count
action greater
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q2031291
action count
action filter_type
action find
entity Q843
relation P495
type Q15617994
[{'concept': 'Q2031291'}, 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?p ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?w ) AS ?i ) WHERE { ?w property:P495 ?y . ?y rdf:type ontology:Q15617994 . ?w rdf:type ontology:Q2031291 } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?t ) WHERE { ?o rdf:type ontology:Q15617994 . resource:Q843 property:P495 ?o } } . FILTER ( ?i > ?t ) }
action count
action greater
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type release
action count
action filter_type
action find
entity Pakistan
relation country of origin
type designation for an administrative territorial entity
[{'concept': 'release'}, 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?p ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?w ) AS ?i ) WHERE { ?w property:country_of_origin ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?w rdf:type ontology:release } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?t ) WHERE { ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Pakistan property:country_of_origin ?o } } . FILTER ( ?i > ?t ) }
[]
designation for an administrative territorial entity release
SYSTEM
9
Q668 Q142 Q55 Q145 Q33 Q30 Q34 Q38 Q17
(c(Q2031291),P495,c(Q15617994))
action count
action greater
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q2031291
action count
action filter_type
action find
entity Q843
relation P495
type Q15617994
[ANSWER]
[{'concept': 'Q2031291'}, 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?p ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?w ) AS ?i ) WHERE { ?w property:P495 ?y . ?y rdf:type ontology:Q15617994 . ?w rdf:type ontology:Q2031291 } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?t ) WHERE { ?o rdf:type ontology:Q15617994 . resource:Q843 property:P495 ?o } } . FILTER ( ?i > ?t ) }
India France Netherlands United Kingdom Finland United States of America Sweden Italy Japan
9
action count
action greater
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type release
action count
action filter_type
action find
entity Pakistan
relation country of origin
type designation for an administrative territorial entity
[{'concept': 'release'}, 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?p ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?w ) AS ?i ) WHERE { ?w property:country_of_origin ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?w rdf:type ontology:release } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?t ) WHERE { ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Pakistan property:country_of_origin ?o } } . FILTER ( ?i > ?t ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q843
P463
Q180684 Q43229
USER
How many conflicts or organizations had Pakistan as their member ?
(Q843,P463,c(Q180684)) (Q843,P463,c(Q43229))
action count
action union
action filter_type
action find
entity Q843
relation P463
type Q180684
action filter_type
action find
entity Q843
relation P463
type Q43229
['Q843', 'P463', {'concept': 'Q180684'}] ['Q843', 'P463', {'concept': 'Q43229'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?f ) WHERE { VALUES ( ?i ) { ( ontology:Q180684 ) ( ontology:Q43229 ) } . ?k rdf:type ?i }
Pakistan
action count
action union
action filter_type
action find
entity Pakistan
relation member of
type conflict
action filter_type
action find
entity Pakistan
relation member of
type organization
['Pakistan', 'member of', {'concept': 'conflict'}] ['Pakistan', 'member of', {'concept': 'organization'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?f ) WHERE { VALUES ( ?i ) { ( ontology:conflict ) ( ontology:organization ) } . ?k rdf:type ?i }
[]
conflict organization
SYSTEM
6
Q384535 Q191384 Q899770 Q656801 Q7825 Q827525
(Q843,P463,c(Q180684)) (Q843,P463,c(Q43229))
action count
action union
action filter_type
action find
entity Q843
relation P463
type Q180684
action filter_type
action find
entity Q843
relation P463
type Q43229
[ANSWER]
['Q843', 'P463', {'concept': 'Q180684'}] ['Q843', 'P463', {'concept': 'Q43229'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?f ) WHERE { VALUES ( ?i ) { ( ontology:Q180684 ) ( ontology:Q43229 ) } . ?k rdf:type ?i }
African Union – United Nations Hybrid Operation in Darfur International Bank for Reconstruction and Development International Centre for Settlement of Investment Disputes International Finance Corporation World Trade Organization International Development Association
6
action count
action union
action filter_type
action find
entity Pakistan
relation member of
type conflict
action filter_type
action find
entity Pakistan
relation member of
type organization
['Pakistan', 'member of', {'concept': 'conflict'}] ['Pakistan', 'member of', {'concept': 'organization'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?f ) WHERE { VALUES ( ?i ) { ( ontology:conflict ) ( ontology:organization ) } . ?k rdf:type ?i }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q843
P85
Q484692
USER
What is the anthem for that administrative territory ?
action filter_type
action find
entity Q843
relation P85
type Q484692
SELECT DISTINCT ?v WHERE { resource:Q843 property:P85 ?v . ?v rdf:type ontology:Q484692 }
Pakistan
action filter_type
action find
entity Pakistan
relation anthem
type hymn
SELECT DISTINCT ?v WHERE { resource:Pakistan property:anthem ?v . ?v rdf:type ontology:hymn }
[]
hymn
Q213267
SYSTEM
Qaumi Taranah
Q213267
action filter_type
action find
entity Q843
relation P85
type Q484692
The anthem for that administrative territory is the [ANSWER]
SELECT DISTINCT ?v WHERE { resource:Q843 property:P85 ?v . ?v rdf:type ontology:Q484692 }
Qaumi Taranah
The anthem for that administrative territory is the Qaumi Taranah
Qaumi Taranah
action filter_type
action find
entity Pakistan
relation anthem
type hymn
SELECT DISTINCT ?v WHERE { resource:Pakistan property:anthem ?v . ?v rdf:type ontology:hymn }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q1048835 Q15617994
USER
Which political territories have a diplomatic relationship with max number of administrative territories ?
(c(Q15617994),P530,Q766)
action argmax
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
[{'concept': 'Q15617994'}, 'P530', 'Q766']
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( MAX ( ?w ) AS ?g ) { SELECT DISTINCT ?q ( COUNT ( ?y ) AS ?w ) WHERE { ?y rdf:type ontology:Q15617994 . ?q rdf:type ontology:Q1048835 . ?q property:P530 ?y } GROUP BY ?q } } . { SELECT DISTINCT ?s ( COUNT ( ?x ) AS ?v ) WHERE { ?s property:P530 ?x . ?s rdf:type ontology:Q1048835 . ?x rdf:type ontology:Q15617994 } GROUP BY ?s } . FILTER ( ?v = ?g ) }
action argmax
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Jamaica']
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( MAX ( ?w ) AS ?g ) { SELECT DISTINCT ?q ( COUNT ( ?y ) AS ?w ) WHERE { ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?q rdf:type ontology:political_territorial_entity . ?q property:diplomatic_relation ?y } GROUP BY ?q } } . { SELECT DISTINCT ?s ( COUNT ( ?x ) AS ?v ) WHERE { ?s property:diplomatic_relation ?x . ?s rdf:type ontology:political_territorial_entity . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?s } . FILTER ( ?v = ?g ) }
[]
political territorial entity designation for an administrative territorial entity
Q183
SYSTEM
Germany
Q183
(c(Q15617994),P530,Q766)
action argmax
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
[ANSWER] have a diplomatic relationship with max number of administrative territories
[{'concept': 'Q15617994'}, 'P530', 'Q766']
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( MAX ( ?w ) AS ?g ) { SELECT DISTINCT ?q ( COUNT ( ?y ) AS ?w ) WHERE { ?y rdf:type ontology:Q15617994 . ?q rdf:type ontology:Q1048835 . ?q property:P530 ?y } GROUP BY ?q } } . { SELECT DISTINCT ?s ( COUNT ( ?x ) AS ?v ) WHERE { ?s property:P530 ?x . ?s rdf:type ontology:Q1048835 . ?x rdf:type ontology:Q15617994 } GROUP BY ?s } . FILTER ( ?v = ?g ) }
Germany
Germany have a diplomatic relationship with max number of administrative territories
Germany
action argmax
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Jamaica']
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( MAX ( ?w ) AS ?g ) { SELECT DISTINCT ?q ( COUNT ( ?y ) AS ?w ) WHERE { ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?q rdf:type ontology:political_territorial_entity . ?q property:diplomatic_relation ?y } GROUP BY ?q } } . { SELECT DISTINCT ?s ( COUNT ( ?x ) AS ?v ) WHERE { ?s property:diplomatic_relation ?x . ?s rdf:type ontology:political_territorial_entity . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?s } . FILTER ( ?v = ?g ) }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q183 Q15837827
P463
Q484652
USER
Was that political territory a member of Baltic Sea Parliamentary Conference ?
(Q183,P463,Q15837827)
action is_in
entity Q15837827
action find
entity Q183
relation P463
['Q183', 'P463', 'Q15837827']
ASK WHERE { resource:Q183 property:P463 resource:Q15837827 }
Germany Baltic Sea Parliamentary Conference
action is_in
entity Baltic Sea Parliamentary Conference
action find
entity Germany
relation member of
['Germany', 'member of', 'Baltic Sea Parliamentary Conference']
ASK WHERE { resource:Germany property:member_of resource:Baltic_Sea_Parliamentary_Conference }
[]
international organization
SYSTEM
NO
(Q183,P463,Q15837827)
action is_in
entity Q15837827
action find
entity Q183
relation P463
[ANSWER]
['Q183', 'P463', 'Q15837827']
ASK WHERE { resource:Q183 property:P463 resource:Q15837827 }
No
action is_in
entity Baltic Sea Parliamentary Conference
action find
entity Germany
relation member of
['Germany', 'member of', 'Baltic Sea Parliamentary Conference']
ASK WHERE { resource:Germany property:member_of resource:Baltic_Sea_Parliamentary_Conference }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q1724359 Q142
P17
Q15617994
USER
Is canton of Bain-de-Bretagne located in France ?
(Q1724359,P17,Q142)
action is_in
entity Q142
action find
entity Q1724359
relation P17
['Q1724359', 'P17', 'Q142']
ASK WHERE { resource:Q1724359 property:P17 resource:Q142 }
canton of Bain-de-Bretagne France
action is_in
entity France
action find
entity canton of Bain-de-Bretagne
relation country
['canton of Bain-de-Bretagne', 'country', 'France']
ASK WHERE { resource:canton_of_Bain-de-Bretagne property:country resource:France }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q1724359,P17,Q142)
action is_in
entity Q142
action find
entity Q1724359
relation P17
[ANSWER]
['Q1724359', 'P17', 'Q142']
ASK WHERE { resource:Q1724359 property:P17 resource:Q142 }
Yes
action is_in
entity France
action find
entity canton of Bain-de-Bretagne
relation country
['canton of Bain-de-Bretagne', 'country', 'France']
ASK WHERE { resource:canton_of_Bain-de-Bretagne property:country resource:France }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q35
P530
Q1048835 Q1048835
USER
Which political territories have ambassadorial relations with lesser number of political territories than Denmark ?
(c(Q1048835),P530,c(Q1048835))
action less
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
action count
action filter_type
action find
entity Q35
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?m ) AS ?h ) WHERE { ?a property:P530 ?m . ?a rdf:type ontology:Q1048835 . ?m rdf:type ontology:Q1048835 } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?c ) WHERE { ?n rdf:type ontology:Q1048835 . resource:Q35 property:P530 ?n } } . FILTER ( ?h < ?c ) }
Denmark
action less
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action count
action filter_type
action find
entity Denmark
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?m ) AS ?h ) WHERE { ?a property:diplomatic_relation ?m . ?a rdf:type ontology:political_territorial_entity . ?m rdf:type ontology:political_territorial_entity } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?c ) WHERE { ?n rdf:type ontology:political_territorial_entity . resource:Denmark property:diplomatic_relation ?n } } . FILTER ( ?h < ?c ) }
[]
political territorial entity political territorial entity
Q40 Q1000 Q769
SYSTEM
Austria, Gabon, Grenada
Q1000 Q40 Q781 Q778 Q769 Q685 Q691 Q766
(c(Q1048835),P530,c(Q1048835))
action less
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
action count
action filter_type
action find
entity Q35
relation P530
type Q1048835
[ANSWERS] have ambassadorial relations with lesser number of political territories than Denmark
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?m ) AS ?h ) WHERE { ?a property:P530 ?m . ?a rdf:type ontology:Q1048835 . ?m rdf:type ontology:Q1048835 } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?c ) WHERE { ?n rdf:type ontology:Q1048835 . resource:Q35 property:P530 ?n } } . FILTER ( ?h < ?c ) }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Papua New Guinea Jamaica
Austria, Gabon and Grenada have ambassadorial relations with lesser number of political territories than Denmark
Austria Gabon Grenada
action less
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action count
action filter_type
action find
entity Denmark
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?m ) AS ?h ) WHERE { ?a property:diplomatic_relation ?m . ?a rdf:type ontology:political_territorial_entity . ?m rdf:type ontology:political_territorial_entity } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?c ) WHERE { ?n rdf:type ontology:political_territorial_entity . resource:Denmark property:diplomatic_relation ?n } } . FILTER ( ?h < ?c ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q408
P530
Q1048835 Q1048835
USER
And also tell me about Australia?
(c(Q1048835),P530,c(Q1048835))
action less
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
action count
action filter_type
action find
entity Q408
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?o ) AS ?m ) WHERE { ?r property:P530 ?o . ?r rdf:type ontology:Q1048835 . ?o rdf:type ontology:Q1048835 } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?i ) WHERE { resource:Q408 property:P530 ?x . ?x rdf:type ontology:Q1048835 } } . FILTER ( ?m < ?i ) }
Australia
action less
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action count
action filter_type
action find
entity Australia
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?o ) AS ?m ) WHERE { ?r property:diplomatic_relation ?o . ?r rdf:type ontology:political_territorial_entity . ?o rdf:type ontology:political_territorial_entity } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?i ) WHERE { resource:Australia property:diplomatic_relation ?x . ?x rdf:type ontology:political_territorial_entity } } . FILTER ( ?m < ?i ) }
[]
political territorial entity political territorial entity
Q183 Q35 Q16
SYSTEM
Germany, Denmark, Canada
Q1000 Q40 Q781 Q778 Q183 Q769 Q685 Q35 Q691 Q16 Q664 Q766
(c(Q1048835),P530,c(Q1048835))
action less
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
action count
action filter_type
action find
entity Q408
relation P530
type Q1048835
[ANSWERS]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?o ) AS ?m ) WHERE { ?r property:P530 ?o . ?r rdf:type ontology:Q1048835 . ?o rdf:type ontology:Q1048835 } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?i ) WHERE { resource:Q408 property:P530 ?x . ?x rdf:type ontology:Q1048835 } } . FILTER ( ?m < ?i ) }
Gabon Austria Antigua and Barbuda The Bahamas Germany Grenada Solomon Islands Denmark Papua New Guinea Canada New Zealand Jamaica
Germany Denmark Canada
action less
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action count
action filter_type
action find
entity Australia
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?o ) AS ?m ) WHERE { ?r property:diplomatic_relation ?o . ?r rdf:type ontology:political_territorial_entity . ?o rdf:type ontology:political_territorial_entity } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?i ) WHERE { resource:Australia property:diplomatic_relation ?x . ?x rdf:type ontology:political_territorial_entity } } . FILTER ( ?m < ?i ) }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q2991421
P530
Q1048835
USER
Do Savolax and Kymmenegård County have tactful political relations with those ones ?
(Q2991421,P530,Q183) (Q2991421,P530,Q35) (Q2991421,P530,Q16)
action is_in
entity prev_answer
action find
entity Q2991421
relation P530
['Q2991421', 'P530', 'Q183'] ['Q2991421', 'P530', 'Q35'] ['Q2991421', 'P530', 'Q16']
ASK WHERE { resource:Q2991421 property:P530 ?t . VALUES ( ?t ) { ( resource:Q1000 ) ( resource:Q40 ) ( resource:Q781 ) } }
Savolax and Kymmenegård County
action is_in
entity prev_answer
action find
entity Savolax and Kymmenegård County
relation diplomatic relation
['Savolax and Kymmenegård County', 'diplomatic relation', 'Germany'] ['Savolax and Kymmenegård County', 'diplomatic relation', 'Denmark'] ['Savolax and Kymmenegård County', 'diplomatic relation', 'Canada']
ASK WHERE { resource:Savolax_and_Kymmenegård_County property:diplomatic_relation ?t . VALUES ( ?t ) { ( resource:Gabon ) ( resource:Austria ) ( resource:Antigua_and_Barbuda ) } }
[]
political territorial entity
SYSTEM
NO
(Q2991421,P530,Q183) (Q2991421,P530,Q35) (Q2991421,P530,Q16)
action is_in
entity prev_answer
action find
entity Q2991421
relation P530
[ANSWER]
['Q2991421', 'P530', 'Q183'] ['Q2991421', 'P530', 'Q35'] ['Q2991421', 'P530', 'Q16']
ASK WHERE { resource:Q2991421 property:P530 ?t . VALUES ( ?t ) { ( resource:Q1000 ) ( resource:Q40 ) ( resource:Q781 ) } }
No
action is_in
entity prev_answer
action find
entity Savolax and Kymmenegård County
relation diplomatic relation
['Savolax and Kymmenegård County', 'diplomatic relation', 'Germany'] ['Savolax and Kymmenegård County', 'diplomatic relation', 'Denmark'] ['Savolax and Kymmenegård County', 'diplomatic relation', 'Canada']
ASK WHERE { resource:Savolax_and_Kymmenegård_County property:diplomatic_relation ?t . VALUES ( ?t ) { ( resource:Gabon ) ( resource:Austria ) ( resource:Antigua_and_Barbuda ) } }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q183 Q252
P530
Q15617994
USER
Does Indonesia have diplomatic relationships with Germany ?
(Q183,P530,Q252)
action is_in
entity Q252
action find
entity Q183
relation P530
['Q183', 'P530', 'Q252']
ASK WHERE { resource:Q183 property:P530 resource:Q252 }
Germany Indonesia
action is_in
entity Indonesia
action find
entity Germany
relation diplomatic relation
['Germany', 'diplomatic relation', 'Indonesia']
ASK WHERE { resource:Germany property:diplomatic_relation resource:Indonesia }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q183,P530,Q252)
action is_in
entity Q252
action find
entity Q183
relation P530
[ANSWER]
['Q183', 'P530', 'Q252']
ASK WHERE { resource:Q183 property:P530 resource:Q252 }
Yes
action is_in
entity Indonesia
action find
entity Germany
relation diplomatic relation
['Germany', 'diplomatic relation', 'Indonesia']
ASK WHERE { resource:Germany property:diplomatic_relation resource:Indonesia }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q183
P532
Q2235308
USER
Which ship type has its base port as that political territory ?
action filter_type
action find_reverse
entity Q183
relation P532
type Q2235308
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q2235308 . ?f property:P532 resource:Q183 }
Germany
action filter_type
action find_reverse
entity Germany
relation port of registry
type ship type
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:ship_type . ?f property:port_of_registry resource:Germany }
[]
ship type
Q469715
SYSTEM
MV Colombo Express
Q469715
action filter_type
action find_reverse
entity Q183
relation P532
type Q2235308
[ANSWER] has its base port as that political territory
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q2235308 . ?f property:P532 resource:Q183 }
MV Colombo Express
MV Colombo Express has its base port as that political territory
MV Colombo Express
action filter_type
action find_reverse
entity Germany
relation port of registry
type ship type
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:ship_type . ?f property:port_of_registry resource:Germany }
[]