Simple Question (Direct)
Simple Question
Q1462182
P39
Q12737077
USER
Which occupation was a position occupied by Friedrich Seegy ?
(Q1462182,P39,c(Q12737077))
action filter_type
action find
entity Q1462182
relation P39
type Q12737077
['Q1462182', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q12737077 . resource:Q1462182 property:P39 ?i }
Friedrich Seegy
action filter_type
action find
entity Friedrich Seegy
relation position held
type occupation
['Friedrich Seegy', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:occupation . resource:Friedrich_Seegy property:position_held ?i }
[]
occupation
Q18220550
SYSTEM
Member of the Bavarian Senate
Q18220550
(Q1462182,P39,c(Q12737077))
action filter_type
action find
entity Q1462182
relation P39
type Q12737077
[ANSWER] was a position occupied by Friedrich Seegy
['Q1462182', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q12737077 . resource:Q1462182 property:P39 ?i }
Member of the Bavarian Senate
Member of the Bavarian Senate was a position occupied by Friedrich Seegy
Member of the Bavarian Senate
action filter_type
action find
entity Friedrich Seegy
relation position held
type occupation
['Friedrich Seegy', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:occupation . resource:Friedrich_Seegy property:position_held ?i }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q18220550
P361
Q11204
USER
Which legislature is that occupation a component of ?
(Q18220550,P361,c(Q11204))
action filter_type
action find
entity Q18220550
relation P361
type Q11204
['Q18220550', 'P361', {'concept': 'Q11204'}]
SELECT DISTINCT ?b WHERE { resource:Q18220550 property:P361 ?b . ?b rdf:type ontology:Q11204 }
Member of the Bavarian Senate
action filter_type
action find
entity Member of the Bavarian Senate
relation part of
type legislature
['Member of the Bavarian Senate', 'part of', {'concept': 'legislature'}]
SELECT DISTINCT ?b WHERE { resource:Member_of_the_Bavarian_Senate property:part_of ?b . ?b rdf:type ontology:legislature }
[]
legislature
Q812372
SYSTEM
Bavarian Senate
Q812372
(Q18220550,P361,c(Q11204))
action filter_type
action find
entity Q18220550
relation P361
type Q11204
[ANSWER] is that occupation a component of
['Q18220550', 'P361', {'concept': 'Q11204'}]
SELECT DISTINCT ?b WHERE { resource:Q18220550 property:P361 ?b . ?b rdf:type ontology:Q11204 }
Bavarian Senate
Bavarian Senate is that occupation a component of
Bavarian Senate
action filter_type
action find
entity Member of the Bavarian Senate
relation part of
type legislature
['Member of the Bavarian Senate', 'part of', {'concept': 'legislature'}]
SELECT DISTINCT ?b WHERE { resource:Member_of_the_Bavarian_Senate property:part_of ?b . ?b rdf:type ontology:legislature }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q18220550
P1001
Q7275
USER
Which state comes under the supervision of Member of the Bavarian Senate ?
(Q18220550,P1001,c(Q7275))
action filter_type
action find
entity Q18220550
relation P1001
type Q7275
['Q18220550', 'P1001', {'concept': 'Q7275'}]
SELECT DISTINCT ?r WHERE { resource:Q18220550 property:P1001 ?r . ?r rdf:type ontology:Q7275 }
Member of the Bavarian Senate
action filter_type
action find
entity Member of the Bavarian Senate
relation applies to jurisdiction
type state
['Member of the Bavarian Senate', 'applies to jurisdiction', {'concept': 'state'}]
SELECT DISTINCT ?r WHERE { resource:Member_of_the_Bavarian_Senate property:applies_to_jurisdiction ?r . ?r rdf:type ontology:state }
[]
state
Q980
SYSTEM
Bavaria
Q980
(Q18220550,P1001,c(Q7275))
action filter_type
action find
entity Q18220550
relation P1001
type Q7275
[ANSWER] comes under the supervision of Member of the [ANSWER]n Senate
['Q18220550', 'P1001', {'concept': 'Q7275'}]
SELECT DISTINCT ?r WHERE { resource:Q18220550 property:P1001 ?r . ?r rdf:type ontology:Q7275 }
Bavaria
Bavaria comes under the supervision of Member of the Bavarian Senate
Bavaria
action filter_type
action find
entity Member of the Bavarian Senate
relation applies to jurisdiction
type state
['Member of the Bavarian Senate', 'applies to jurisdiction', {'concept': 'state'}]
SELECT DISTINCT ?r WHERE { resource:Member_of_the_Bavarian_Senate property:applies_to_jurisdiction ?r . ?r rdf:type ontology:state }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q165230
Q7275
USER
And how about flag of the Soviet Union?
(Q165230,P1001,c(Q7275))
action filter_type
action find
entity Q165230
relation P1001
type Q7275
['Q165230', 'P1001', {'concept': 'Q7275'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q7275 . resource:Q165230 property:P1001 ?p }
flag of the Soviet Union
action filter_type
action find
entity flag of the Soviet Union
relation applies to jurisdiction
type state
['flag of the Soviet Union', 'applies to jurisdiction', {'concept': 'state'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:state . resource:flag_of_the_Soviet_Union property:applies_to_jurisdiction ?p }
[]
state
Q15180
SYSTEM
Soviet Union
Q15180
(Q165230,P1001,c(Q7275))
action filter_type
action find
entity Q165230
relation P1001
type Q7275
[ANSWER]
['Q165230', 'P1001', {'concept': 'Q7275'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q7275 . resource:Q165230 property:P1001 ?p }
Soviet Union
Soviet Union
action filter_type
action find
entity flag of the Soviet Union
relation applies to jurisdiction
type state
['flag of the Soviet Union', 'applies to jurisdiction', {'concept': 'state'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:state . resource:flag_of_the_Soviet_Union property:applies_to_jurisdiction ?p }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q15180 Q16
P530
Q1048835
USER
Does Canada have diplomatic relations with Soviet Union ?
(Q15180,P530,Q16)
action is_in
entity Q16
action find
entity Q15180
relation P530
['Q15180', 'P530', 'Q16']
ASK WHERE { resource:Q15180 property:P530 resource:Q16 }
Soviet Union Canada
action is_in
entity Canada
action find
entity Soviet Union
relation diplomatic relation
['Soviet Union', 'diplomatic relation', 'Canada']
ASK WHERE { resource:Soviet_Union property:diplomatic_relation resource:Canada }
[]
political territorial entity
SYSTEM
YES
(Q15180,P530,Q16)
action is_in
entity Q16
action find
entity Q15180
relation P530
[ANSWER]
['Q15180', 'P530', 'Q16']
ASK WHERE { resource:Q15180 property:P530 resource:Q16 }
Yes
action is_in
entity Canada
action find
entity Soviet Union
relation diplomatic relation
['Soviet Union', 'diplomatic relation', 'Canada']
ASK WHERE { resource:Soviet_Union property:diplomatic_relation resource:Canada }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q15180
P85
Q7725634 Q484692
USER
How many literary works or hymns are the anthems for Soviet Union ?
(Q15180,P85,c(Q7725634)) (Q15180,P85,c(Q484692))
action count
action union
action filter_type
action find
entity Q15180
relation P85
type Q7725634
action filter_type
action find
entity Q15180
relation P85
type Q484692
['Q15180', 'P85', {'concept': 'Q7725634'}] ['Q15180', 'P85', {'concept': 'Q484692'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?l ) WHERE { { resource:Q15180 property:P85 ?z . ?z rdf:type ontology:Q7725634 } UNION { ?z rdf:type ontology:Q484692 . resource:Q15180 property:P85 ?z } }
Soviet Union
action count
action union
action filter_type
action find
entity Soviet Union
relation anthem
type literary work
action filter_type
action find
entity Soviet Union
relation anthem
type hymn
['Soviet Union', 'anthem', {'concept': 'literary work'}] ['Soviet Union', 'anthem', {'concept': 'hymn'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?l ) WHERE { { resource:Soviet_Union property:anthem ?z . ?z rdf:type ontology:literary_work } UNION { ?z rdf:type ontology:hymn . resource:Soviet_Union property:anthem ?z } }
[]
literary work hymn
SYSTEM
2
Q251918 Q49617
(Q15180,P85,c(Q7725634)) (Q15180,P85,c(Q484692))
action count
action union
action filter_type
action find
entity Q15180
relation P85
type Q7725634
action filter_type
action find
entity Q15180
relation P85
type Q484692
[ANSWER]
['Q15180', 'P85', {'concept': 'Q7725634'}] ['Q15180', 'P85', {'concept': 'Q484692'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?l ) WHERE { { resource:Q15180 property:P85 ?z . ?z rdf:type ontology:Q7725634 } UNION { ?z rdf:type ontology:Q484692 . resource:Q15180 property:P85 ?z } }
National Anthem of the Soviet Union The Internationale
2
action count
action union
action filter_type
action find
entity Soviet Union
relation anthem
type literary work
action filter_type
action find
entity Soviet Union
relation anthem
type hymn
['Soviet Union', 'anthem', {'concept': 'literary work'}] ['Soviet Union', 'anthem', {'concept': 'hymn'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?l ) WHERE { { resource:Soviet_Union property:anthem ?z . ?z rdf:type ontology:literary_work } UNION { ?z rdf:type ontology:hymn . resource:Soviet_Union property:anthem ?z } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q25906422 Q18220550
P921 P17
Q1048835
USER
Which political territories do Member of the Bavarian Senate belong to or were discussed in Henllys, near Beaumaris : N.Wales. seat of J. Lewis Hampton-Lewis Esqre ?
OR((Q18220550,P17,c(Q1048835)), (Q25906422,P921,c(Q1048835)))
action filter_type
action union
action find
entity Q18220550
relation P17
action find
entity Q25906422
relation P921
type Q1048835
{'OR': [['Q18220550', 'P17', {'concept': 'Q1048835'}], ['Q25906422', 'P921', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Q18220550 property:P17 ?t } UNION { resource:Q25906422 property:P921 ?t } } . ?t rdf:type ontology:Q1048835 }
Henllys, near Beaumaris : N.Wales. seat of J. Lewis Hampton-Lewis Esqre Member of the Bavarian Senate
action filter_type
action union
action find
entity Member of the Bavarian Senate
relation country
action find
entity Henllys, near Beaumaris : N.Wales. seat of J. Lewis Hampton-Lewis Esqre
relation main subject
type political territorial entity
{'OR': [['Member of the Bavarian Senate', 'country', {'concept': 'political territorial entity'}], ['Henllys, near Beaumaris : N.Wales. seat of J. Lewis Hampton-Lewis Esqre', 'main subject', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Member_of_the_Bavarian_Senate property:country ?t } UNION { resource:Henllys,_near_Beaumaris_:_N.Wales._seat_of_J._Lewis_Hampton-Lewis_Esqre property:main_subject ?t } } . ?t rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q2655856 Q183
SYSTEM
Menai Bridge, Germany
Q2655856 Q183
OR((Q18220550,P17,c(Q1048835)), (Q25906422,P921,c(Q1048835)))
action filter_type
action union
action find
entity Q18220550
relation P17
action find
entity Q25906422
relation P921
type Q1048835
Member of the Bavarian Senate belong to the [ANSWERS] .
{'OR': [['Q18220550', 'P17', {'concept': 'Q1048835'}], ['Q25906422', 'P921', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Q18220550 property:P17 ?t } UNION { resource:Q25906422 property:P921 ?t } } . ?t rdf:type ontology:Q1048835 }
Menai Bridge Germany
Member of the Bavarian Senate belong to the Menai Bridge and Germany .
Menai Bridge Germany
action filter_type
action union
action find
entity Member of the Bavarian Senate
relation country
action find
entity Henllys, near Beaumaris : N.Wales. seat of J. Lewis Hampton-Lewis Esqre
relation main subject
type political territorial entity
{'OR': [['Member of the Bavarian Senate', 'country', {'concept': 'political territorial entity'}], ['Henllys, near Beaumaris : N.Wales. seat of J. Lewis Hampton-Lewis Esqre', 'main subject', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Member_of_the_Bavarian_Senate property:country ?t } UNION { resource:Henllys,_near_Beaumaris_:_N.Wales._seat_of_J._Lewis_Hampton-Lewis_Esqre property:main_subject ?t } } . ?t rdf:type ontology:political_territorial_entity }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P17
Q15617994
USER
How many administrative territories are that political territory located in ?
(Q2655856,P17,c(Q15617994))
['Q2655856', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q24054934 property:Q6256 ?z . ?z rdf:type ontology:Q15617994 }
['Menai Bridge', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Menai_Bridge property:country ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Quantitative|Count|Single entity type|Clarification
Q2655856
SYSTEM
Did you mean Menai Bridge ?
(Q2655856,P17,c(Q15617994)) (Q183,P17,c(Q15617994))
[ANSWER]
['Q2655856', 'P17', {'concept': 'Q15617994'}] ['Q183', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q24054934 property:Q6256 ?z . ?z rdf:type ontology:Q15617994 }
Did you mean Menai Bridge ?
Menai Bridge
['Menai Bridge', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Germany', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Menai_Bridge property:country ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
USER
Yes
(Q2655856,P17,c(Q15617994))
['Q2655856', 'P17', {'concept': 'Q15617994'}]
['Menai Bridge', 'country', {'concept': 'designation for an administrative territorial entity'}]
[]
SYSTEM
1
Q145
(Q2655856,P17,c(Q15617994))
[ANSWER]
['Q2655856', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q24054934 property:Q6256 ?z . ?z rdf:type ontology:Q15617994 }
United Kingdom
1
['Menai Bridge', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Menai_Bridge property:country ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q20
P530
Q15617994 Q1048835
USER
How many administrative territories have diplomatic relationships with more number of political territories than Norway ?
(c(Q1048835),P530,c(Q15617994))
action count
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q20
relation P530
type Q15617994
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?c ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?a ) AS ?t ) WHERE { ?r rdf:type ontology:Q15617994 . ?a rdf:type ontology:Q1048835 . ?r property:P530 ?a } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?q ) WHERE { ?d rdf:type ontology:Q15617994 . resource:Q20 property:P530 ?d } } . FILTER ( ?t > ?q ) }
Norway
action count
action greater
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Norway
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 ( COUNT ( ?r ) AS ?c ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?a ) AS ?t ) WHERE { ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . ?a rdf:type ontology:political_territorial_entity . ?r property:diplomatic_relation ?a } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?q ) WHERE { ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Norway property:diplomatic_relation ?d } } . FILTER ( ?t > ?q ) }
[]
designation for an administrative territorial entity political territorial entity
SYSTEM
2
Q155 Q38
(c(Q1048835),P530,c(Q15617994))
action count
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q20
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?c ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?a ) AS ?t ) WHERE { ?r rdf:type ontology:Q15617994 . ?a rdf:type ontology:Q1048835 . ?r property:P530 ?a } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?q ) WHERE { ?d rdf:type ontology:Q15617994 . resource:Q20 property:P530 ?d } } . FILTER ( ?t > ?q ) }
Brazil Italy
2
action count
action greater
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Norway
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 ( COUNT ( ?r ) AS ?c ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?a ) AS ?t ) WHERE { ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . ?a rdf:type ontology:political_territorial_entity . ?r property:diplomatic_relation ?a } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?q ) WHERE { ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Norway property:diplomatic_relation ?d } } . FILTER ( ?t > ?q ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q800
P530
Q15617994 Q1048835
USER
And how about Costa Rica?
(c(Q1048835),P530,c(Q15617994))
action count
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q800
relation P530
type Q15617994
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?e ) WHERE { { SELECT DISTINCT ?d ( COUNT ( ?j ) AS ?v ) WHERE { ?d property:P530 ?j . ?j rdf:type ontology:Q1048835 . ?d rdf:type ontology:Q15617994 } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?w ) WHERE { resource:Q800 property:P530 ?l . ?l rdf:type ontology:Q15617994 } } . FILTER ( ?v > ?w ) }
Costa Rica
action count
action greater
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Costa Rica
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 ( COUNT ( ?d ) AS ?e ) WHERE { { SELECT DISTINCT ?d ( COUNT ( ?j ) AS ?v ) WHERE { ?d property:diplomatic_relation ?j . ?j rdf:type ontology:political_territorial_entity . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?w ) WHERE { resource:Costa_Rica property:diplomatic_relation ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?v > ?w ) }
[]
designation for an administrative territorial entity political territorial entity
SYSTEM
34
Q801 Q142 Q145 Q711 Q252 Q403 Q258 Q159 Q43 Q155 Q884 Q33 Q30 Q36 Q34 Q39 Q38 Q739 Q423 Q851 Q20 Q843 Q1029 Q229 Q1030 Q115 Q114 Q212 Q218 Q833 Q79 Q77 Q878 Q953
(c(Q1048835),P530,c(Q15617994))
action count
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q800
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?e ) WHERE { { SELECT DISTINCT ?d ( COUNT ( ?j ) AS ?v ) WHERE { ?d property:P530 ?j . ?j rdf:type ontology:Q1048835 . ?d rdf:type ontology:Q15617994 } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?w ) WHERE { resource:Q800 property:P530 ?l . ?l rdf:type ontology:Q15617994 } } . FILTER ( ?v > ?w ) }
Israel France United Kingdom Mongolia Indonesia Serbia South Africa Russia Turkey Brazil South Korea Finland United States of America Poland Sweden Switzerland Italy Colombia North Korea Saudi Arabia Norway Pakistan Mozambique Cyprus Namibia Ethiopia Kenya Ukraine Romania Malaysia Egypt Uruguay United Arab Emirates Zambia
34
action count
action greater
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Costa Rica
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 ( COUNT ( ?d ) AS ?e ) WHERE { { SELECT DISTINCT ?d ( COUNT ( ?j ) AS ?v ) WHERE { ?d property:diplomatic_relation ?j . ?j rdf:type ontology:political_territorial_entity . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?w ) WHERE { resource:Costa_Rica property:diplomatic_relation ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?v > ?w ) }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P1376
Q7275 Q486972 Q515
USER
Which states have around 1 human settlements or cities as their capital ?
(c(Q486972)|c(Q515),P1376,c(Q7275))
action approx
action union
action find_reverse_tuple_counts
relation P1376
type Q7275
type Q486972
action find_reverse_tuple_counts
relation P1376
type Q7275
type Q515
value 1
[[{'concept': 'Q486972'}, {'concept': 'Q515'}], 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?v ) ?o WHERE { { ?o rdf:type ontology:Q7275 . ?u rdf:type ontology:Q486972 . ?u property:P1376 ?o } UNION { ?u property:P1376 ?o . ?o rdf:type ontology:Q7275 . ?u rdf:type ontology:Q515 } } GROUP BY ?o } . FILTER ( ?v = 1 ) }
action approx
action union
action find_reverse_tuple_counts
relation capital of
type state
type human settlement
action find_reverse_tuple_counts
relation capital of
type state
type city
value 1
[[{'concept': 'human settlement'}, {'concept': 'city'}], 'capital of', {'concept': 'state'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?v ) ?o WHERE { { ?o rdf:type ontology:state . ?u rdf:type ontology:human_settlement . ?u property:capital_of ?o } UNION { ?u property:capital_of ?o . ?o rdf:type ontology:state . ?u rdf:type ontology:city } } GROUP BY ?o } . FILTER ( ?v = 1 ) }
[]
state human settlement city
Q16957 Q133356 Q172107
SYSTEM
East Germany, Ukrainian Soviet Socialist Republic, Polish–Lithuanian Commonwealth
Q178665 Q18285930 Q855044 Q210198 Q133356 Q215530 Q912043 Q1649871 Q203493 Q1574107 Q15864 Q2361927 Q698089 Q953432 Q210542 Q2114397 Q220110 Q1414395 Q756895 Q49697 Q6500954 Q274488 Q216173 Q476757 Q1274468 Q234197 Q1108445 Q153080 Q16957 Q1154540 Q550374 Q19831559 Q172107 Q1048918 Q783489 Q618399 Q180573 Q216786 Q752662 Q797422 Q235030 Q1668970 Q320930 Q849623 Q139670 Q1138904 Q7352 Q9903 Q941881 Q38060 Q844250 Q738144 Q207521 Q1658411 Q157734 Q1415585 Q146328 Q1508143 Q940821 Q248572 Q697084 Q213586 Q11196 Q146713 Q427941 Q697837 Q747314 Q307069 Q28278 Q62454 Q1192067 Q2372248 Q505503 Q153015 Q846670 Q696242 Q1479726 Q467864 Q212056 Q487829 Q3041595 Q484104 Q648297 Q149805
(c(Q486972)|c(Q515),P1376,c(Q7275))
action approx
action union
action find_reverse_tuple_counts
relation P1376
type Q7275
type Q486972
action find_reverse_tuple_counts
relation P1376
type Q7275
type Q515
value 1
[ANSWERS] have around 1 human settlements or cities as their capital
[[{'concept': 'Q486972'}, {'concept': 'Q515'}], 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?v ) ?o WHERE { { ?o rdf:type ontology:Q7275 . ?u rdf:type ontology:Q486972 . ?u property:P1376 ?o } UNION { ?u property:P1376 ?o . ?o rdf:type ontology:Q7275 . ?u rdf:type ontology:Q515 } } GROUP BY ?o } . FILTER ( ?v = 1 ) }
Mitanni German Empire of 1848/1849 Bhopal State Erivan Khanate Ukrainian Soviet Socialist Republic Kingdom of Ireland Jin Kingdom of Poland Kingdom of Romania Han Zhao United Kingdom of the Netherlands Duchy of Masovia Grand Duchy of Würzburg Couto Misto Second Brazilian Republic Yogyakarta Sultanate Rohan Republic of South Maluku Kediri Liu Song dynasty Zaire Eastern Wu Free City of Danzig Democratic Republic of Afghanistan Republic of Bosnia and Herzegovina Srivijaya Kievan Rus' East Francia East Germany Later Jin Dynasty South African Republic Oldenburg Polish–Lithuanian Commonwealth Suebic Kingdom of Galicia Later Liang dynasty Republic of the Congo South Vietnam Champa Hafsid dynasty Republic of Upper Volta Principality of Antioch Western Qin Cao Wei Oyo Empire Democratic Republic of Armenia Kingdom of Afghanistan Jin dynasty Ming imperium Netherlands New Guinea Gaul Lordship of Ireland United Provinces of the Río de la Plata Abyssinia Kingdom of Sarawak Muscat and Oman Islamic State of Afghanistan Commonwealth of the Philippines Ukrainian State People's Democratic Republic of Ethiopia Sultanate of Maguindanao Duchy of Oldenburg Gondor Republika Srpska Arab Federation Islamic Emirate of Afghanistan Mengjiang Bechuanaland Protectorate Eastern Wei Provisional Government of the Republic of Korea Chen dynasty Min Free State of Oldenburg Cochinchina Kingdom of Saxony Danishmends Reorganized National Government of China Federation of Malaya People's Socialist Republic of Albania Mongolian People's Republic Chagatai Khanate Republic of Iraq United States Army Military Government in Korea Free State of Brunswick Kingdom of Iraq
East Germany, Ukrainian Soviet Socialist Republic and Polish–Lithuanian Commonwealth have around 1 human settlements or cities as their capital
East Germany Ukrainian Soviet Socialist Republic Polish–Lithuanian Commonwealth
action approx
action union
action find_reverse_tuple_counts
relation capital of
type state
type human settlement
action find_reverse_tuple_counts
relation capital of
type state
type city
value 1
[[{'concept': 'human settlement'}, {'concept': 'city'}], 'capital of', {'concept': 'state'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?v ) ?o WHERE { { ?o rdf:type ontology:state . ?u rdf:type ontology:human_settlement . ?u property:capital_of ?o } UNION { ?u property:capital_of ?o . ?o rdf:type ontology:state . ?u rdf:type ontology:city } } GROUP BY ?o } . FILTER ( ?v = 1 ) }
[]
Clarification
Comparative|Count over More/Less|Single entity type|Indirect
P35
Q502895 Q7275
USER
How many states are more number of people the head of state of than that state ?
(c(Q7275),P35,c(Q502895))
[{'concept': 'Q7275'}, 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { ?z property:Q48352 ?y . ?z rdf:type ontology:Q7275 . ?y rdf:type ontology:Q502895 }
[{'concept': 'state'}, 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { ?z property:head_of_state ?y . ?z rdf:type ontology:state . ?y rdf:type ontology:common_name }
[]
common name state
Comparative|Count over More/Less|Single entity type|Clarification
Q16957
SYSTEM
Did you mean East Germany ?
(c(Q7275),P35,c(Q502895))
[ANSWER]
[{'concept': 'Q7275'}, 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { ?z property:Q48352 ?y . ?z rdf:type ontology:Q7275 . ?y rdf:type ontology:Q502895 }
Did you mean East Germany ?
East Germany
[{'concept': 'state'}, 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { ?z property:head_of_state ?y . ?z rdf:type ontology:state . ?y rdf:type ontology:common_name }
[]
Comparative Reasoning (Count) (All)
USER
Yes
(c(Q7275),P35,c(Q502895))
[{'concept': 'Q7275'}, 'P35', {'concept': 'Q502895'}]
[{'concept': 'state'}, 'head of state', {'concept': 'common name'}]
[]
SYSTEM
1
Q33946
(c(Q7275),P35,c(Q502895))
[ANSWER]
[{'concept': 'Q7275'}, 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { ?z property:Q48352 ?y . ?z rdf:type ontology:Q7275 . ?y rdf:type ontology:Q502895 }
Czechoslovakia
1
[{'concept': 'state'}, 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { ?z property:head_of_state ?y . ?z rdf:type ontology:state . ?y rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q183
P710
Q1914636
USER
Which activity was Germany a participant of ?
(c(Q1914636),P710,Q183)
action filter_type
action find_reverse
entity Q183
relation P710
type Q1914636
[{'concept': 'Q1914636'}, 'P710', 'Q183']
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q1914636 . ?o property:P710 resource:Q183 }
Germany
action filter_type
action find_reverse
entity Germany
relation participant
type activity
[{'concept': 'activity'}, 'participant', 'Germany']
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:activity . ?o property:participant resource:Germany }
[]
activity
Q1023355
SYSTEM
CEPHEUS
Q1023355
(c(Q1914636),P710,Q183)
action filter_type
action find_reverse
entity Q183
relation P710
type Q1914636
Germany was the [ANSWER]
[{'concept': 'Q1914636'}, 'P710', 'Q183']
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q1914636 . ?o property:P710 resource:Q183 }
CEPHEUS
Germany was the CEPHEUS
CEPHEUS
action filter_type
action find_reverse
entity Germany
relation participant
type activity
[{'concept': 'activity'}, 'participant', 'Germany']
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:activity . ?o property:participant resource:Germany }
[]