Simple Question (Direct)
Simple Question
Q1479650
P39
Q12737077
USER
Which occupation was a position occupied by Leonhard Burlein ?
(Q1479650,P39,c(Q12737077))
action filter_type
action find
entity Q1479650
relation P39
type Q12737077
['Q1479650', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?o WHERE { resource:Q1479650 property:P39 ?o . ?o rdf:type ontology:Q12737077 }
Leonhard Burlein
action filter_type
action find
entity Leonhard Burlein
relation position held
type occupation
['Leonhard Burlein', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?o WHERE { resource:Leonhard_Burlein property:position_held ?o . ?o rdf:type ontology:occupation }
[]
occupation
Q17854096
SYSTEM
member of the Reichstag of the German Empire
Q17854096
(Q1479650,P39,c(Q12737077))
action filter_type
action find
entity Q1479650
relation P39
type Q12737077
A [ANSWER] was a position occupied by Leonhard Burlein
['Q1479650', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?o WHERE { resource:Q1479650 property:P39 ?o . ?o rdf:type ontology:Q12737077 }
member of the Reichstag of the German Empire
A member of the Reichstag of the German Empire was a position occupied by Leonhard Burlein
member of the Reichstag of the German Empire
action filter_type
action find
entity Leonhard Burlein
relation position held
type occupation
['Leonhard Burlein', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?o WHERE { resource:Leonhard_Burlein property:position_held ?o . ?o rdf:type ontology:occupation }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q17854096 Q7253170 Q4701517
P361
Q1752346
USER
Is that occupation a component of Prussian estates and Akola Municipal Corporation ?
(Q17854096,P361,Q7253170) (Q17854096,P361,Q4701517)
action is_in
entity Q17854096
action intersection
action find_reverse
entity Q7253170
relation P361
action find_reverse
entity Q4701517
relation P361
['Q17854096', 'P361', 'Q7253170'] ['Q17854096', 'P361', 'Q4701517']
ASK WHERE { resource:Q17854096 property:P361 resource:Q7253170 . resource:Q17854096 property:P361 resource:Q4701517 }
member of the Reichstag of the German Empire Prussian estates Akola Municipal Corporation
action is_in
entity member of the Reichstag of the German Empire
action intersection
action find_reverse
entity Prussian estates
relation part of
action find_reverse
entity Akola Municipal Corporation
relation part of
['member of the Reichstag of the German Empire', 'part of', 'Prussian estates'] ['member of the Reichstag of the German Empire', 'part of', 'Akola Municipal Corporation']
ASK WHERE { resource:member_of_the_Reichstag_of_the_German_Empire property:part_of resource:Prussian_estates . resource:member_of_the_Reichstag_of_the_German_Empire property:part_of resource:Akola_Municipal_Corporation }
[]
assembly
SYSTEM
NO
(Q17854096,P361,Q7253170) (Q17854096,P361,Q4701517)
action is_in
entity Q17854096
action intersection
action find_reverse
entity Q7253170
relation P361
action find_reverse
entity Q4701517
relation P361
[ANSWER]
['Q17854096', 'P361', 'Q7253170'] ['Q17854096', 'P361', 'Q4701517']
ASK WHERE { resource:Q17854096 property:P361 resource:Q7253170 . resource:Q17854096 property:P361 resource:Q4701517 }
No
action is_in
entity member of the Reichstag of the German Empire
action intersection
action find_reverse
entity Prussian estates
relation part of
action find_reverse
entity Akola Municipal Corporation
relation part of
['member of the Reichstag of the German Empire', 'part of', 'Prussian estates'] ['member of the Reichstag of the German Empire', 'part of', 'Akola Municipal Corporation']
ASK WHERE { resource:member_of_the_Reichstag_of_the_German_Empire property:part_of resource:Prussian_estates . resource:member_of_the_Reichstag_of_the_German_Empire property:part_of resource:Akola_Municipal_Corporation }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q1479650 Q5636922 Q5590231
P937
Q56061
USER
Does Leonhard Burlein work at Habost and Gozar ?
(Q1479650,P937,Q5636922) (Q1479650,P937,Q5590231)
action is_in
entity Q1479650
action intersection
action find_reverse
entity Q5636922
relation P937
action find_reverse
entity Q5590231
relation P937
['Q1479650', 'P937', 'Q5636922'] ['Q1479650', 'P937', 'Q5590231']
ASK WHERE { resource:Q1479650 property:P937 resource:Q5636922 . resource:Q1479650 property:P937 resource:Q5590231 }
Leonhard Burlein Habost Gozar
action is_in
entity Leonhard Burlein
action intersection
action find_reverse
entity Habost
relation work location
action find_reverse
entity Gozar
relation work location
['Leonhard Burlein', 'work location', 'Habost'] ['Leonhard Burlein', 'work location', 'Gozar']
ASK WHERE { resource:Leonhard_Burlein property:work_location resource:Habost . resource:Leonhard_Burlein property:work_location resource:Gozar }
[]
administrative territorial entity
SYSTEM
NO
(Q1479650,P937,Q5636922) (Q1479650,P937,Q5590231)
action is_in
entity Q1479650
action intersection
action find_reverse
entity Q5636922
relation P937
action find_reverse
entity Q5590231
relation P937
[ANSWER]
['Q1479650', 'P937', 'Q5636922'] ['Q1479650', 'P937', 'Q5590231']
ASK WHERE { resource:Q1479650 property:P937 resource:Q5636922 . resource:Q1479650 property:P937 resource:Q5590231 }
No
action is_in
entity Leonhard Burlein
action intersection
action find_reverse
entity Habost
relation work location
action find_reverse
entity Gozar
relation work location
['Leonhard Burlein', 'work location', 'Habost'] ['Leonhard Burlein', 'work location', 'Gozar']
ASK WHERE { resource:Leonhard_Burlein property:work_location resource:Habost . resource:Leonhard_Burlein property:work_location resource:Gozar }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q842782
P921
Q12737077 Q191067 Q732577
USER
How many occupations were the main subjects in the work greater number of articles or publications than detective ?
(c(Q191067)|c(Q732577),P921,c(Q12737077))
action count
action greater
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q191067
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q732577
action count
action filter_multi_types
action find_reverse
entity Q842782
relation P921
type Q191067
type Q732577
[[{'concept': 'Q191067'}, {'concept': 'Q732577'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?v ) WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?u ) ?z WHERE { VALUES ( ?p ) { ( ontology:Q191067 ) ( ontology:Q732577 ) } . ?n rdf:type ?p } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?m ) WHERE { ?k property:P921 resource:Q842782 . { { ?k rdf:type ontology:Q191067 } UNION { ?k rdf:type ontology:Q732577 } } } } . FILTER ( ?u > ?m ) }
detective
action count
action greater
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type article
action find_reverse_tuple_counts
relation main subject
type occupation
type publication
action count
action filter_multi_types
action find_reverse
entity detective
relation main subject
type article
type publication
[[{'concept': 'article'}, {'concept': 'publication'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?v ) WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?u ) ?z WHERE { VALUES ( ?p ) { ( ontology:article ) ( ontology:publication ) } . ?n rdf:type ?p } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?m ) WHERE { ?k property:main_subject resource:detective . { { ?k rdf:type ontology:article } UNION { ?k rdf:type ontology:publication } } } } . FILTER ( ?u > ?m ) }
[]
occupation article publication
SYSTEM
9
Q172907 Q3809586 Q2094335 Q316070 Q510373 Q152002 Q15320003 Q732358 Q182436
(c(Q191067)|c(Q732577),P921,c(Q12737077))
action count
action greater
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q191067
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q732577
action count
action filter_multi_types
action find_reverse
entity Q842782
relation P921
type Q191067
type Q732577
[ANSWER]
[[{'concept': 'Q191067'}, {'concept': 'Q732577'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?v ) WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?u ) ?z WHERE { VALUES ( ?p ) { ( ontology:Q191067 ) ( ontology:Q732577 ) } . ?n rdf:type ?p } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?m ) WHERE { ?k property:P921 resource:Q842782 . { { ?k rdf:type ontology:Q191067 } UNION { ?k rdf:type ontology:Q732577 } } } } . FILTER ( ?u > ?m ) }
praetor Wikipedian in Residence United States Attorney Fletcher Christian Lord High Steward pastor migrant worker Nomarch librarian
9
action count
action greater
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type article
action find_reverse_tuple_counts
relation main subject
type occupation
type publication
action count
action filter_multi_types
action find_reverse
entity detective
relation main subject
type article
type publication
[[{'concept': 'article'}, {'concept': 'publication'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?v ) WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?u ) ?z WHERE { VALUES ( ?p ) { ( ontology:article ) ( ontology:publication ) } . ?n rdf:type ?p } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?m ) WHERE { ?k property:main_subject resource:detective . { { ?k rdf:type ontology:article } UNION { ?k rdf:type ontology:publication } } } } . FILTER ( ?u > ?m ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q5185440
P921
Q12737077 Q191067 Q732577
USER
And what about Crime scene cleanup?
(c(Q191067)|c(Q732577),P921,c(Q12737077))
action count
action greater
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q191067
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q732577
action count
action filter_multi_types
action find_reverse
entity Q5185440
relation P921
type Q191067
type Q732577
[[{'concept': 'Q191067'}, {'concept': 'Q732577'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?j ) WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?r ) ?h WHERE { { ?k property:P921 ?h . ?h rdf:type ontology:Q12737077 . ?k rdf:type ontology:Q732577 } UNION { ?k property:P921 ?h . ?h rdf:type ontology:Q12737077 . ?k rdf:type ontology:Q191067 } } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?q ) WHERE { ?l property:P921 resource:Q5185440 . { { ?l rdf:type ontology:Q191067 } UNION { ?l rdf:type ontology:Q732577 } } } } . FILTER ( ?r > ?q ) }
Crime scene cleanup
action count
action greater
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type article
action find_reverse_tuple_counts
relation main subject
type occupation
type publication
action count
action filter_multi_types
action find_reverse
entity Crime scene cleanup
relation main subject
type article
type publication
[[{'concept': 'article'}, {'concept': 'publication'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?j ) WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?r ) ?h WHERE { { ?k property:main_subject ?h . ?h rdf:type ontology:occupation . ?k rdf:type ontology:publication } UNION { ?k property:main_subject ?h . ?h rdf:type ontology:occupation . ?k rdf:type ontology:article } } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?q ) WHERE { ?l property:main_subject resource:Crime_scene_cleanup . { { ?l rdf:type ontology:article } UNION { ?l rdf:type ontology:publication } } } } . FILTER ( ?r > ?q ) }
[]
occupation article publication
SYSTEM
9
Q172907 Q3809586 Q2094335 Q316070 Q510373 Q152002 Q15320003 Q732358 Q182436
(c(Q191067)|c(Q732577),P921,c(Q12737077))
action count
action greater
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q191067
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q732577
action count
action filter_multi_types
action find_reverse
entity Q5185440
relation P921
type Q191067
type Q732577
[ANSWER]
[[{'concept': 'Q191067'}, {'concept': 'Q732577'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?j ) WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?r ) ?h WHERE { { ?k property:P921 ?h . ?h rdf:type ontology:Q12737077 . ?k rdf:type ontology:Q732577 } UNION { ?k property:P921 ?h . ?h rdf:type ontology:Q12737077 . ?k rdf:type ontology:Q191067 } } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?q ) WHERE { ?l property:P921 resource:Q5185440 . { { ?l rdf:type ontology:Q191067 } UNION { ?l rdf:type ontology:Q732577 } } } } . FILTER ( ?r > ?q ) }
praetor Wikipedian in Residence United States Attorney Fletcher Christian Lord High Steward pastor migrant worker Nomarch librarian
9
action count
action greater
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type article
action find_reverse_tuple_counts
relation main subject
type occupation
type publication
action count
action filter_multi_types
action find_reverse
entity Crime scene cleanup
relation main subject
type article
type publication
[[{'concept': 'article'}, {'concept': 'publication'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?j ) WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?r ) ?h WHERE { { ?k property:main_subject ?h . ?h rdf:type ontology:occupation . ?k rdf:type ontology:publication } UNION { ?k property:main_subject ?h . ?h rdf:type ontology:occupation . ?k rdf:type ontology:article } } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?q ) WHERE { ?l property:main_subject resource:Crime_scene_cleanup . { { ?l rdf:type ontology:article } UNION { ?l rdf:type ontology:publication } } } } . FILTER ( ?r > ?q ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q18559580 Q17854096
P361
Q1752346
USER
Which assemblies are member of the Reichstag of the German Empire or member of Landtag of Saxony-Anhalt a component of ?
OR((Q17854096,P361,c(Q1752346)), (Q18559580,P361,c(Q1752346)))
action filter_type
action union
action find
entity Q17854096
relation P361
action find
entity Q18559580
relation P361
type Q1752346
{'OR': [['Q17854096', 'P361', {'concept': 'Q1752346'}], ['Q18559580', 'P361', {'concept': 'Q1752346'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Q17854096 property:P361 ?w } UNION { resource:Q18559580 property:P361 ?w } } . ?w rdf:type ontology:Q1752346 }
member of Landtag of Saxony-Anhalt member of the Reichstag of the German Empire
action filter_type
action union
action find
entity member of the Reichstag of the German Empire
relation part of
action find
entity member of Landtag of Saxony-Anhalt
relation part of
type assembly
{'OR': [['member of the Reichstag of the German Empire', 'part of', {'concept': 'assembly'}], ['member of Landtag of Saxony-Anhalt', 'part of', {'concept': 'assembly'}]]}
SELECT DISTINCT ?w WHERE { { { resource:member_of_the_Reichstag_of_the_German_Empire property:part_of ?w } UNION { resource:member_of_Landtag_of_Saxony-Anhalt property:part_of ?w } } . ?w rdf:type ontology:assembly }
[]
assembly
Q884829 Q160208
SYSTEM
Landtag of Saxony-Anhalt, Reichstag
Q884829 Q160208
OR((Q17854096,P361,c(Q1752346)), (Q18559580,P361,c(Q1752346)))
action filter_type
action union
action find
entity Q17854096
relation P361
action find
entity Q18559580
relation P361
type Q1752346
The [ANSWERS] are member of the Reichstag of the German Empire or member of Landtag of Saxony-Anhalt a component of
{'OR': [['Q17854096', 'P361', {'concept': 'Q1752346'}], ['Q18559580', 'P361', {'concept': 'Q1752346'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Q17854096 property:P361 ?w } UNION { resource:Q18559580 property:P361 ?w } } . ?w rdf:type ontology:Q1752346 }
Landtag of Saxony-Anhalt Reichstag
The Landtag of Saxony-Anhalt and Reichstag are member of the Reichstag of the German Empire or member of Landtag of Saxony-Anhalt a component of
Landtag of Saxony-Anhalt Reichstag
action filter_type
action union
action find
entity member of the Reichstag of the German Empire
relation part of
action find
entity member of Landtag of Saxony-Anhalt
relation part of
type assembly
{'OR': [['member of the Reichstag of the German Empire', 'part of', {'concept': 'assembly'}], ['member of Landtag of Saxony-Anhalt', 'part of', {'concept': 'assembly'}]]}
SELECT DISTINCT ?w WHERE { { { resource:member_of_the_Reichstag_of_the_German_Empire property:part_of ?w } UNION { resource:member_of_Landtag_of_Saxony-Anhalt property:part_of ?w } } . ?w rdf:type ontology:assembly }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q649
P194
Q1752346 Q56061
USER
Which administrative territories have around the same number of assemblies as their representative body as Moscow ?
(c(Q56061),P194,c(Q1752346))
action approx
action find_tuple_counts
relation P194
type Q56061
type Q1752346
action count
action filter_type
action find
entity Q649
relation P194
type Q56061
[{'concept': 'Q56061'}, 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?l ) AS ?w ) WHERE { ?d property:P194 ?l . ?d rdf:type ontology:Q56061 . ?l rdf:type ontology:Q1752346 } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?h ) WHERE { resource:Q649 property:P194 ?j . ?j rdf:type ontology:Q56061 } } . FILTER ( ?w = ?h ) }
Moscow
action approx
action find_tuple_counts
relation legislative body
type administrative territorial entity
type assembly
action count
action filter_type
action find
entity Moscow
relation legislative body
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?l ) AS ?w ) WHERE { ?d property:legislative_body ?l . ?d rdf:type ontology:administrative_territorial_entity . ?l rdf:type ontology:assembly } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?h ) WHERE { resource:Moscow property:legislative_body ?j . ?j rdf:type ontology:administrative_territorial_entity } } . FILTER ( ?w = ?h ) }
[]
assembly administrative territorial entity
Q72 Q649 Q64
SYSTEM
Zürich, Moscow, Berlin
Q16555 Q623589 Q34183 Q649 Q126195 Q49256 Q100 Q1297 Q12439 Q266510 Q5083 Q23556 Q5689 Q34218 Q13896 Q37320 Q35775 Q1930 Q172 Q42308 Q334 Q5092 Q72 Q41262 Q16556 Q64 Q65 Q60 Q16557
(c(Q56061),P194,c(Q1752346))
action approx
action find_tuple_counts
relation P194
type Q56061
type Q1752346
action count
action filter_type
action find
entity Q649
relation P194
type Q56061
[ANSWERS] have around the same number of assemblies as their representative body as Moscow
[{'concept': 'Q56061'}, 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?l ) AS ?w ) WHERE { ?d property:P194 ?l . ?d rdf:type ontology:Q56061 . ?l rdf:type ontology:Q1752346 } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?h ) WHERE { resource:Q649 property:P194 ?j . ?j rdf:type ontology:Q56061 } } . FILTER ( ?w = ?h ) }
Houston Kingdom of Slavonia Barrie Moscow Plymouth Colony Bakersfield Boston Chicago Detroit Triptis Seattle Atlanta Åland Islands Burlington Markgröningen Cleveland Boise Ottawa Toronto Kharkiv Singapore Baltimore Zürich Nottingham Phoenix Berlin Los Angeles New York City Dallas
Zürich, Moscow and Berlin have around the same number of assemblies as their representative body as Moscow
Zürich Moscow Berlin
action approx
action find_tuple_counts
relation legislative body
type administrative territorial entity
type assembly
action count
action filter_type
action find
entity Moscow
relation legislative body
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?l ) AS ?w ) WHERE { ?d property:legislative_body ?l . ?d rdf:type ontology:administrative_territorial_entity . ?l rdf:type ontology:assembly } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?h ) WHERE { resource:Moscow property:legislative_body ?j . ?j rdf:type ontology:administrative_territorial_entity } } . FILTER ( ?w = ?h ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q62
P194
Q1752346 Q56061
USER
And what about San Francisco?
(c(Q56061),P194,c(Q1752346))
action approx
action find_tuple_counts
relation P194
type Q56061
type Q1752346
action count
action filter_type
action find
entity Q62
relation P194
type Q56061
[{'concept': 'Q56061'}, 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?k ) AS ?q ) WHERE { ?e property:P194 ?k . ?e rdf:type ontology:Q56061 . ?k rdf:type ontology:Q1752346 } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?r ) WHERE { resource:Q62 property:P194 ?d . ?d rdf:type ontology:Q56061 } } . FILTER ( ?q = ?r ) }
San Francisco
action approx
action find_tuple_counts
relation legislative body
type administrative territorial entity
type assembly
action count
action filter_type
action find
entity San Francisco
relation legislative body
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?k ) AS ?q ) WHERE { ?e property:legislative_body ?k . ?e rdf:type ontology:administrative_territorial_entity . ?k rdf:type ontology:assembly } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?r ) WHERE { resource:San_Francisco property:legislative_body ?d . ?d rdf:type ontology:administrative_territorial_entity } } . FILTER ( ?q = ?r ) }
[]
assembly administrative territorial entity
Q1085 Q458 Q90
SYSTEM
Prague, European Union, Paris
Q33613 Q1867 Q43070 Q90 Q3032154 Q54119 Q37133 Q458 Q329984 Q1022 Q1027659 Q340 Q181557 Q157260 Q1842 Q4093 Q1341 Q179313 Q4264 Q10686 Q891 Q157134 Q1741 Q1489 Q1085 Q1957 Q7172 Q526224 Q1874 Q14935613 Q61 Q172438 Q237 Q11703 Q26 Q163584 Q7159 Q5727 Q62
(c(Q56061),P194,c(Q1752346))
action approx
action find_tuple_counts
relation P194
type Q56061
type Q1752346
action count
action filter_type
action find
entity Q62
relation P194
type Q56061
[ANSWERS]
[{'concept': 'Q56061'}, 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?k ) AS ?q ) WHERE { ?e property:P194 ?k . ?e rdf:type ontology:Q56061 . ?k rdf:type ontology:Q1752346 } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?r ) WHERE { resource:Q62 property:P194 ?d . ?d rdf:type ontology:Q56061 } } . FILTER ( ?q = ?r ) }
Kramatorsk Taipei Donetsk Paris electoral district of New South Wales San Pedro Mariupol European Union Úbeda Stuttgart Strabane Montreal Kaohsiung City Horlivka Luxembourg Glasgow Tolyatti Alderney Mercosur Belfast Nizhny Novgorod Makiivka Vienna Mexico City Prague Vologda Arab League Blackheath Odessa Gormanston Washington, D.C. Peterborough Vatican City United States Virgin Islands Northern Ireland Derry African Union La Rioja San Francisco
Prague European Union Paris
action approx
action find_tuple_counts
relation legislative body
type administrative territorial entity
type assembly
action count
action filter_type
action find
entity San Francisco
relation legislative body
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?k ) AS ?q ) WHERE { ?e property:legislative_body ?k . ?e rdf:type ontology:administrative_territorial_entity . ?k rdf:type ontology:assembly } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?r ) WHERE { resource:San_Francisco property:legislative_body ?d . ?d rdf:type ontology:administrative_territorial_entity } } . FILTER ( ?q = ?r ) }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P530
Q1048835
USER
How many political territories holds diplomatic relationship with that administrative territory ?
(Q458,P530,c(Q1048835))
['Q458', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q458 property:P530 ?z . ?z rdf:type ontology:Q1048835 }
['European Union', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:European_Union property:diplomatic_relation ?z . ?z rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Quantitative|Count|Single entity type|Clarification
Q458
SYSTEM
Did you mean European Union ?
(Q1085,P530,c(Q1048835)) (Q458,P530,c(Q1048835)) (Q90,P530,c(Q1048835))
[ANSWER]
['Q1085', 'P530', {'concept': 'Q1048835'}] ['Q458', 'P530', {'concept': 'Q1048835'}] ['Q90', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q458 property:P530 ?z . ?z rdf:type ontology:Q1048835 }
Did you mean European Union ?
European Union
['Prague', 'diplomatic relation', {'concept': 'political territorial entity'}] ['European Union', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Paris', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:European_Union property:diplomatic_relation ?z . ?z rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
USER
Yes
(Q458,P530,c(Q1048835))
['Q458', 'P530', {'concept': 'Q1048835'}]
['European Union', 'diplomatic relation', {'concept': 'political territorial entity'}]
[]
SYSTEM
1
Q16
(Q458,P530,c(Q1048835))
[ANSWER]
['Q458', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q458 property:P530 ?z . ?z rdf:type ontology:Q1048835 }
Canada
1
['European Union', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:European_Union property:diplomatic_relation ?z . ?z rdf:type ontology:political_territorial_entity }
[]