Simple Question (Direct)
Simple Question
Q1039723
P1303
Q34379
USER
Which musical instrument is played by Carl McKinley ?
(Q1039723,P1303,c(Q34379))
action filter_type
action find
entity Q1039723
relation P1303
type Q34379
['Q1039723', 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?d WHERE { resource:Q1039723 property:P1303 ?d . ?d rdf:type ontology:Q34379 }
Carl McKinley
action filter_type
action find
entity Carl McKinley
relation instrument
type musical instrument
['Carl McKinley', 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?d WHERE { resource:Carl_McKinley property:instrument ?d . ?d rdf:type ontology:musical_instrument }
[]
musical instrument
Q1444
SYSTEM
organ
Q1444
(Q1039723,P1303,c(Q34379))
action filter_type
action find
entity Q1039723
relation P1303
type Q34379
[ANSWER] is played by Carl McKinley
['Q1039723', 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?d WHERE { resource:Q1039723 property:P1303 ?d . ?d rdf:type ontology:Q34379 }
organ
Organ is played by Carl McKinley
organ
action filter_type
action find
entity Carl McKinley
relation instrument
type musical instrument
['Carl McKinley', 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?d WHERE { resource:Carl_McKinley property:instrument ?d . ?d rdf:type ontology:musical_instrument }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1039723
P20
Q56061
USER
Where did Carl McKinley expire ?
(Q1039723,P20,c(Q56061))
action filter_type
action find
entity Q1039723
relation P20
type Q56061
['Q1039723', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?m WHERE { resource:Q1039723 property:P20 ?m . ?m rdf:type ontology:Q56061 }
Carl McKinley
action filter_type
action find
entity Carl McKinley
relation place of death
type administrative territorial entity
['Carl McKinley', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { resource:Carl_McKinley property:place_of_death ?m . ?m rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q100
SYSTEM
Boston
Q100
(Q1039723,P20,c(Q56061))
action filter_type
action find
entity Q1039723
relation P20
type Q56061
Carl McKinley expired in [ANSWER]
['Q1039723', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?m WHERE { resource:Q1039723 property:P20 ?m . ?m rdf:type ontology:Q56061 }
Boston
Carl McKinley expired in Boston
Boston
action filter_type
action find
entity Carl McKinley
relation place of death
type administrative territorial entity
['Carl McKinley', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { resource:Carl_McKinley property:place_of_death ?m . ?m rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q681721
Q56061
USER
And how about Eddie Rosner?
(Q681721,P20,c(Q56061))
action filter_type
action find
entity Q681721
relation P20
type Q56061
['Q681721', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?s WHERE { resource:Q681721 property:P20 ?s . ?s rdf:type ontology:Q56061 }
Eddie Rosner
action filter_type
action find
entity Eddie Rosner
relation place of death
type administrative territorial entity
['Eddie Rosner', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:Eddie_Rosner property:place_of_death ?s . ?s rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q64
SYSTEM
Berlin
Q64
(Q681721,P20,c(Q56061))
action filter_type
action find
entity Q681721
relation P20
type Q56061
[ANSWER]
['Q681721', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?s WHERE { resource:Q681721 property:P20 ?s . ?s rdf:type ontology:Q56061 }
Berlin
Berlin
action filter_type
action find
entity Eddie Rosner
relation place of death
type administrative territorial entity
['Eddie Rosner', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:Eddie_Rosner property:place_of_death ?s . ?s rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q681721
P136
Q151885
USER
What is the genre of that person ?
(Q64,P136,c(Q151885))
action filter_type
action find
entity Q681721
relation P136
type Q151885
['Q64', 'P136', {'concept': 'Q151885'}]
SELECT DISTINCT ?d WHERE { resource:Q681721 property:P136 ?d . ?d rdf:type ontology:Q151885 }
Eddie Rosner
action filter_type
action find
entity Eddie Rosner
relation genre
type concept
['Berlin', 'genre', {'concept': 'concept'}]
SELECT DISTINCT ?d WHERE { resource:Eddie_Rosner property:genre ?d . ?d rdf:type ontology:concept }
[]
concept
Q8341
SYSTEM
jazz
Q8341
(Q64,P136,c(Q151885))
action filter_type
action find
entity Q681721
relation P136
type Q151885
The genre of that person is a [ANSWER]
['Q64', 'P136', {'concept': 'Q151885'}]
SELECT DISTINCT ?d WHERE { resource:Q681721 property:P136 ?d . ?d rdf:type ontology:Q151885 }
jazz
The genre of that person is a jazz
jazz
action filter_type
action find
entity Eddie Rosner
relation genre
type concept
['Berlin', 'genre', {'concept': 'concept'}]
SELECT DISTINCT ?d WHERE { resource:Eddie_Rosner property:genre ?d . ?d rdf:type ontology:concept }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q1444
P870
Q207628 Q862597
USER
How many musical compositions and musical forms use organ as a musical instrument ?
(c(Q207628),P870,Q1444) (c(Q862597),P870,Q1444)
action count
action union
action filter_type
action find_reverse
entity Q1444
relation P870
type Q207628
action filter_type
action find_reverse
entity Q1444
relation P870
type Q862597
[{'concept': 'Q207628'}, 'P870', 'Q1444'] [{'concept': 'Q862597'}, 'P870', 'Q1444']
SELECT DISTINCT ( COUNT ( ?l ) AS ?m ) WHERE { { ?l property:P870 resource:Q1444 . ?l rdf:type ontology:Q862597 } UNION { ?l property:P870 resource:Q1444 . ?l rdf:type ontology:Q207628 } }
organ
action count
action union
action filter_type
action find_reverse
entity organ
relation instrumentation
type musical composition
action filter_type
action find_reverse
entity organ
relation instrumentation
type musical form
[{'concept': 'musical composition'}, 'instrumentation', 'organ'] [{'concept': 'musical form'}, 'instrumentation', 'organ']
SELECT DISTINCT ( COUNT ( ?l ) AS ?m ) WHERE { { ?l property:instrumentation resource:organ . ?l rdf:type ontology:musical_form } UNION { ?l property:instrumentation resource:organ . ?l rdf:type ontology:musical_composition } }
[]
musical composition musical form
SYSTEM
20 musical compositions and 21 musical forms
Q1033707 Q341122 Q3507769 Q2658250 Q7240074 Q979164 Q3139026 Q1994431 Q5349011 Q1567650 Q223533 Q7661495 Q2313192 Q3507800 Q3927378 Q911487 Q304423 Q594766 Q7240086 Q210549 Q5359758 Q2030219 Q300546 Q2301333 Q7240067 Q392734 Q16932350 Q4376914 Q240020 Q1810096 Q4790186 Q7894215 Q6981946 Q7661517 Q270853 Q1733265 Q1752809 Q7240080 Q3052168 Q908241 Q2152891
(c(Q207628),P870,Q1444) (c(Q862597),P870,Q1444)
action count
action union
action filter_type
action find_reverse
entity Q1444
relation P870
type Q207628
action filter_type
action find_reverse
entity Q1444
relation P870
type Q862597
[ANSWER]
[{'concept': 'Q207628'}, 'P870', 'Q1444'] [{'concept': 'Q862597'}, 'P870', 'Q1444']
SELECT DISTINCT ( COUNT ( ?l ) AS ?m ) WHERE { { ?l property:P870 resource:Q1444 . ?l rdf:type ontology:Q862597 } UNION { ?l property:P870 resource:Q1444 . ?l rdf:type ontology:Q207628 } }
A Christmas Cantata Great Eighteen Chorale Preludes Symphony No. 3 The Bells Prelude and Fugue in D major, BWV 532 Toccata and Fugue in D minor, BWV 538 Hodie Six Little Preludes Eight Short Preludes and Fugues Toccata and Fugue in F major, BWV 540 Symphony No. 3 Symphony No. 1 "The Gothic" Sinfonia antartica Symphony No. 4 Clavier-Übung III Romeo and Juliet An Alpine Symphony Symphony No. 4 Prelude in C minor, BWV 999 Symphony No. 2 Eleven Chorale Preludes Orgelbüchlein A Sea Symphony Toccata, Adagio and Fugue in C major, BWV 564 Prelude (Toccata) and Fugue in E major, BWV 566 Toccata and Fugue in D minor, BWV 565 Romeo and Juliet Prelude and Fugue in A minor, BWV 543 Symphony for Organ No. 5 The Poem of Ecstasy Ariadne musica Universe Symphony Prelude, Fugue and Allegro in E-flat major, BWV 998 Symphony No. 2 Symphony No. 8 Prometheus: The Poem of Fire Manfred Symphony Prelude in B minor Taras Bulba Organ Sonatas Symphony No. 7
20 musical compositions and 21 musical forms
action count
action union
action filter_type
action find_reverse
entity organ
relation instrumentation
type musical composition
action filter_type
action find_reverse
entity organ
relation instrumentation
type musical form
[{'concept': 'musical composition'}, 'instrumentation', 'organ'] [{'concept': 'musical form'}, 'instrumentation', 'organ']
SELECT DISTINCT ( COUNT ( ?l ) AS ?m ) WHERE { { ?l property:instrumentation resource:organ . ?l rdf:type ontology:musical_form } UNION { ?l property:instrumentation resource:organ . ?l rdf:type ontology:musical_composition } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q64
P47
Q1048835
USER
Which political territories have an adjacent border with Berlin ?
(c(Q1048835),P47,Q64)
action filter_type
action find
entity Q64
relation P47
type Q1048835
[{'concept': 'Q1048835'}, 'P47', 'Q64']
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q1048835 . resource:Q64 property:P47 ?z }
Berlin
action filter_type
action find
entity Berlin
relation shares border with
type political territorial entity
[{'concept': 'political territorial entity'}, 'shares border with', 'Berlin']
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:political_territorial_entity . resource:Berlin property:shares_border_with ?z }
[]
political territorial entity
Q6142 Q6146 Q6139
SYSTEM
Potsdam-Mittelmark, Teltow-Fläming, Havelland
Q6173 Q6139 Q6142 Q6115 Q6181 Q6146 Q6178 Q6119
(c(Q1048835),P47,Q64)
action filter_type
action find
entity Q64
relation P47
type Q1048835
[ANSWERS] have an adjacent border with Berlin
[{'concept': 'Q1048835'}, 'P47', 'Q64']
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q1048835 . resource:Q64 property:P47 ?z }
Dahme-Spreewald Havelland Potsdam-Mittelmark Barnim Märkisch-Oderland Teltow-Fläming Oder-Spree Oberhavel
Potsdam-Mittelmark, Teltow-Fläming and Havelland have an adjacent border with Berlin
Potsdam-Mittelmark Teltow-Fläming Havelland
action filter_type
action find
entity Berlin
relation shares border with
type political territorial entity
[{'concept': 'political territorial entity'}, 'shares border with', 'Berlin']
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:political_territorial_entity . resource:Berlin property:shares_border_with ?z }
[]
Clarification
Simple Question|Single Entity|Indirect
Q6139
P127
Q4830453
USER
Which business enterprise belongs to that political territory ?
(c(Q4830453),P127,Q6139)
action filter_type
action find_reverse
entity Q6139
relation P127
type Q4830453
[{'concept': 'Q4830453'}, 'P127', 'Q6139']
SELECT DISTINCT ?t WHERE { ?t property:P127 resource:Q6139 . ?t rdf:type ontology:Q4830453 }
Havelland
action filter_type
action find_reverse
entity Havelland
relation owned by
type business enterprise
[{'concept': 'business enterprise'}, 'owned by', 'Havelland']
SELECT DISTINCT ?t WHERE { ?t property:owned_by resource:Havelland . ?t rdf:type ontology:business_enterprise }
[]
business enterprise
Clarification for simple ques.
Q6146
SYSTEM
Did you mean Teltow-Fläming ?
Q6142 Q6146 Q6139
(c(Q4830453),P127,Q6142) (c(Q4830453),P127,Q6146) (c(Q4830453),P127,Q6139)
[ANSWER]
[{'concept': 'Q4830453'}, 'P127', 'Q6142'] [{'concept': 'Q4830453'}, 'P127', 'Q6146'] [{'concept': 'Q4830453'}, 'P127', 'Q6139']
SELECT DISTINCT ?t WHERE { ?t property:P127 resource:Q6139 . ?t rdf:type ontology:Q4830453 }
Potsdam-Mittelmark Teltow-Fläming Havelland
Did you mean Teltow-Fläming ?
Teltow-Fläming
[{'concept': 'business enterprise'}, 'owned by', 'Potsdam-Mittelmark'] [{'concept': 'business enterprise'}, 'owned by', 'Teltow-Fläming'] [{'concept': 'business enterprise'}, 'owned by', 'Havelland']
SELECT DISTINCT ?t WHERE { ?t property:owned_by resource:Havelland . ?t rdf:type ontology:business_enterprise }
[]
Simple Question (Coreferenced)
USER
No, I meant Havelland. Could you tell me the answer for that?
(c(Q4830453),P127,Q6139)
Q6139
[{'concept': 'Q4830453'}, 'P127', 'Q6139']
[{'concept': 'business enterprise'}, 'owned by', 'Havelland']
[]
Q1591492
SYSTEM
Havelbus
Q1591492
(c(Q4830453),P127,Q6139)
action filter_type
action find_reverse
entity Q6139
relation P127
type Q4830453
[ANSWER] belongs to that political territory
[{'concept': 'Q4830453'}, 'P127', 'Q6139']
SELECT DISTINCT ?t WHERE { ?t property:P127 resource:Q6139 . ?t rdf:type ontology:Q4830453 }
Havelbus
Havelbus belongs to that political territory
Havelbus
action filter_type
action find_reverse
entity Havelland
relation owned by
type business enterprise
[{'concept': 'business enterprise'}, 'owned by', 'Havelland']
SELECT DISTINCT ?t WHERE { ?t property:owned_by resource:Havelland . ?t rdf:type ontology:business_enterprise }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q6139
P47
Q56061
USER
How many administrative territories are bordered by Havelland ?
(Q6139,P47,c(Q56061))
action count
action filter_type
action find
entity Q6139
relation P47
type Q56061
['Q6139', 'P47', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?k ) WHERE { resource:Q6139 property:P47 ?l . ?l rdf:type ontology:Q56061 }
Havelland
action count
action filter_type
action find
entity Havelland
relation shares border with
type administrative territorial entity
['Havelland', 'shares border with', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?k ) WHERE { resource:Havelland property:shares_border_with ?l . ?l rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
SYSTEM
1
Q64
(Q6139,P47,c(Q56061))
action count
action filter_type
action find
entity Q6139
relation P47
type Q56061
[ANSWER]
['Q6139', 'P47', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?k ) WHERE { resource:Q6139 property:P47 ?l . ?l rdf:type ontology:Q56061 }
Berlin
1
action count
action filter_type
action find
entity Havelland
relation shares border with
type administrative territorial entity
['Havelland', 'shares border with', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?k ) WHERE { resource:Havelland property:shares_border_with ?l . ?l rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q966492
P1408
Q4830453
USER
Which business enterprise is licensed to broadcast to Lincoln, California ?
(c(Q4830453),P1408,Q966492)
action filter_type
action find_reverse
entity Q966492
relation P1408
type Q4830453
[{'concept': 'Q4830453'}, 'P1408', 'Q966492']
SELECT DISTINCT ?n WHERE { ?n property:P1408 resource:Q966492 . ?n rdf:type ontology:Q4830453 }
Lincoln, California
action filter_type
action find_reverse
entity Lincoln, California
relation licensed to broadcast to
type business enterprise
[{'concept': 'business enterprise'}, 'licensed to broadcast to', 'Lincoln, California']
SELECT DISTINCT ?n WHERE { ?n property:licensed_to_broadcast_to resource:Lincoln,_California . ?n rdf:type ontology:business_enterprise }
[]
business enterprise
Q6331843
SYSTEM
KKFS
Q6331843
(c(Q4830453),P1408,Q966492)
action filter_type
action find_reverse
entity Q966492
relation P1408
type Q4830453
[ANSWER] is licensed to broadcast to Lincoln, California
[{'concept': 'Q4830453'}, 'P1408', 'Q966492']
SELECT DISTINCT ?n WHERE { ?n property:P1408 resource:Q966492 . ?n rdf:type ontology:Q4830453 }
KKFS
KKFS is licensed to broadcast to Lincoln, California
KKFS
action filter_type
action find_reverse
entity Lincoln, California
relation licensed to broadcast to
type business enterprise
[{'concept': 'business enterprise'}, 'licensed to broadcast to', 'Lincoln, California']
SELECT DISTINCT ?n WHERE { ?n property:licensed_to_broadcast_to resource:Lincoln,_California . ?n rdf:type ontology:business_enterprise }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q966492
P17
Q15617994
USER
Which administrative territory is that administrative territory a part of ?
(Q6331843,P17,c(Q15617994))
action filter_type
action find
entity Q966492
relation P17
type Q15617994
['Q6331843', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q15617994 . resource:Q966492 property:P17 ?c }
Lincoln, California
action filter_type
action find
entity Lincoln, California
relation country
type designation for an administrative territorial entity
['KKFS', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Lincoln,_California property:country ?c }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
(Q6331843,P17,c(Q15617994))
action filter_type
action find
entity Q966492
relation P17
type Q15617994
The [ANSWER] is that administrative territory a part of
['Q6331843', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q15617994 . resource:Q966492 property:P17 ?c }
United States of America
The United States of America is that administrative territory a part of
United States of America
action filter_type
action find
entity Lincoln, California
relation country
type designation for an administrative territorial entity
['KKFS', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Lincoln,_California property:country ?c }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators|Indirect
P463
Q35749 Q874405
USER
How many parliaments and social groups were that administrative territory a member of ?
(Q30,P463,c(Q35749)) (Q30,P463,c(Q874405)) (Q30,P463,c(Q35749)) (Q30,P463,c(Q874405))
action count
action union
action filter_type
action find
entity Q30
relation P463
type Q35749
action filter_type
action find
entity Q30
relation P463
type Q874405
['Q30', 'P463', {'concept': 'Q35749'}] ['Q30', 'P463', {'concept': 'Q874405'}] ['Q30', 'P463', {'concept': 'Q35749'}] ['Q30', 'P463', {'concept': 'Q874405'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?t ) WHERE { { resource:Q30 property:P463 ?e . ?e rdf:type ontology:Q35749 } UNION { resource:Q30 property:P463 ?e . ?e rdf:type ontology:Q874405 } }
action count
action union
action filter_type
action find
entity United States of America
relation member of
type parliament
action filter_type
action find
entity United States of America
relation member of
type social group
['United States of America', 'member of', {'concept': 'parliament'}] ['United States of America', 'member of', {'concept': 'social group'}] ['United States of America', 'member of', {'concept': 'parliament'}] ['United States of America', 'member of', {'concept': 'social group'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?t ) WHERE { { resource:United_States_of_America property:member_of ?e . ?e rdf:type ontology:parliament } UNION { resource:United_States_of_America property:member_of ?e . ?e rdf:type ontology:social_group } }
[]
parliament social group
SYSTEM
1 parliaments and 2 social groups
Q37470 Q782942 Q295875
(Q30,P463,c(Q35749)) (Q30,P463,c(Q874405)) (Q30,P463,c(Q35749)) (Q30,P463,c(Q874405))
action count
action union
action filter_type
action find
entity Q30
relation P463
type Q35749
action filter_type
action find
entity Q30
relation P463
type Q874405
[ANSWER]
['Q30', 'P463', {'concept': 'Q35749'}] ['Q30', 'P463', {'concept': 'Q874405'}] ['Q30', 'P463', {'concept': 'Q35749'}] ['Q30', 'P463', {'concept': 'Q874405'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?t ) WHERE { { resource:Q30 property:P463 ?e . ?e rdf:type ontology:Q35749 } UNION { resource:Q30 property:P463 ?e . ?e rdf:type ontology:Q874405 } }
United Nations Security Council Australia Group ANZUS
1 parliaments and 2 social groups
action count
action union
action filter_type
action find
entity United States of America
relation member of
type parliament
action filter_type
action find
entity United States of America
relation member of
type social group
['United States of America', 'member of', {'concept': 'parliament'}] ['United States of America', 'member of', {'concept': 'social group'}] ['United States of America', 'member of', {'concept': 'parliament'}] ['United States of America', 'member of', {'concept': 'social group'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?t ) WHERE { { resource:United_States_of_America property:member_of ?e . ?e rdf:type ontology:parliament } UNION { resource:United_States_of_America property:member_of ?e . ?e rdf:type ontology:social_group } }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q1048835
USER
Which political territories have diplomatic relations with approximately 98 administrative territories ?
(c(Q1048835),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 98
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?p ) AS ?c ) WHERE { ?v property:P530 ?p . ?v rdf:type ontology:Q1048835 . ?p rdf:type ontology:Q15617994 } GROUP BY ?v } . FILTER ( ?c = 98 ) }
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 98
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?p ) AS ?c ) WHERE { ?v property:diplomatic_relation ?p . ?v rdf:type ontology:political_territorial_entity . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?v } . FILTER ( ?c = 98 ) }
[]
designation for an administrative territorial entity political territorial entity
Q183 Q408
SYSTEM
Germany, Australia
Q183 Q408
(c(Q1048835),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 98
[ANSWERS] have diplomatic relations with approximately 98 administrative territories
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?p ) AS ?c ) WHERE { ?v property:P530 ?p . ?v rdf:type ontology:Q1048835 . ?p rdf:type ontology:Q15617994 } GROUP BY ?v } . FILTER ( ?c = 98 ) }
Germany Australia
Germany and Australia have diplomatic relations with approximately 98 administrative territories
Germany Australia
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 98
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?p ) AS ?c ) WHERE { ?v property:diplomatic_relation ?p . ?v rdf:type ontology:political_territorial_entity . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?v } . FILTER ( ?c = 98 ) }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q3785262 Q408
P530 P27
Q15617994
USER
Which administrative territories have diplomatic relationships with Australia and are the native countriesof Hermes González ?
AND((Q408,P530,c(Q15617994)), (Q3785262,P27,c(Q15617994)))
action filter_type
action intersection
action find
entity Q408
relation P530
action find
entity Q3785262
relation P27
type Q15617994
{'AND': [['Q408', 'P530', {'concept': 'Q15617994'}], ['Q3785262', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q15617994 . resource:Q3785262 property:P27 ?e . resource:Q408 property:P530 ?e }
Hermes González Australia
action filter_type
action intersection
action find
entity Australia
relation diplomatic relation
action find
entity Hermes González
relation country of citizenship
type designation for an administrative territorial entity
{'AND': [['Australia', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Hermes González', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Hermes_González property:country_of_citizenship ?e . resource:Australia property:diplomatic_relation ?e }
[]
designation for an administrative territorial entity
Q733
SYSTEM
Paraguay
Q733
AND((Q408,P530,c(Q15617994)), (Q3785262,P27,c(Q15617994)))
action filter_type
action intersection
action find
entity Q408
relation P530
action find
entity Q3785262
relation P27
type Q15617994
[ANSWER] have diplomatic relationships with Australia and are the native countriesof Hermes González
{'AND': [['Q408', 'P530', {'concept': 'Q15617994'}], ['Q3785262', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q15617994 . resource:Q3785262 property:P27 ?e . resource:Q408 property:P530 ?e }
Paraguay
Paraguay have diplomatic relationships with Australia and are the native countriesof Hermes González
Paraguay
action filter_type
action intersection
action find
entity Australia
relation diplomatic relation
action find
entity Hermes González
relation country of citizenship
type designation for an administrative territorial entity
{'AND': [['Australia', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Hermes González', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Hermes_González property:country_of_citizenship ?e . resource:Australia property:diplomatic_relation ?e }
[]