Simple Question (Direct)
Simple Question
Q92067
P9
Q502895
USER
Who are Valentin Schweiger a sibling of ?
(Q92067,P9,c(Q502895))
action filter_type
action find
entity Q92067
relation P9
type Q502895
['Q92067', 'P9', {'concept': 'Q502895'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q502895 . resource:Q92067 property:P9 ?s }
Valentin Schweiger
action filter_type
action find
entity Valentin Schweiger
relation sister
type common name
['Valentin Schweiger', 'sister', {'concept': 'common name'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:common_name . resource:Valentin_Schweiger property:sister ?s }
[]
common name
Q100175 Q92071 Q92052
SYSTEM
Lilli Schweiger, Luna Schweiger, Emma Tiger Schweiger
Q100175 Q92071 Q92052
(Q92067,P9,c(Q502895))
action filter_type
action find
entity Q92067
relation P9
type Q502895
Valentin Schweiger a sibling of are [ANSWERS]
['Q92067', 'P9', {'concept': 'Q502895'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q502895 . resource:Q92067 property:P9 ?s }
Lilli Schweiger Luna Schweiger Emma Tiger Schweiger
Valentin Schweiger a sibling of are Lilli Schweiger, Luna Schweiger and Emma Tiger Schweiger
Lilli Schweiger Luna Schweiger Emma Tiger Schweiger
action filter_type
action find
entity Valentin Schweiger
relation sister
type common name
['Valentin Schweiger', 'sister', {'concept': 'common name'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:common_name . resource:Valentin_Schweiger property:sister ?s }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q100175 Q92071 Q92052
P9
Q502895
USER
Which people are the sisters of Lilli Schweiger, Luna Schweiger and Emma Tiger Schweiger ?
(Q100175,P9,c(Q502895)) (Q92071,P9,c(Q502895)) (Q92052,P9,c(Q502895))
action union
action filter_type
action find
entity Q100175
relation P9
type Q502895
action filter_type
action find
entity Q92071
relation P9
type Q502895
action filter_type
action find
entity Q92052
relation P9
type Q502895
['Q100175', 'P9', {'concept': 'Q502895'}] ['Q92071', 'P9', {'concept': 'Q502895'}] ['Q92052', 'P9', {'concept': 'Q502895'}]
SELECT DISTINCT ?p WHERE { ?j property:P9 ?p . VALUES ( ?j ) { ( resource:Q100175 ) ( resource:Q92071 ) } }
Lilli Schweiger Luna Schweiger Emma Tiger Schweiger
action union
action filter_type
action find
entity Lilli Schweiger
relation sister
type common name
action filter_type
action find
entity Luna Schweiger
relation sister
type common name
action filter_type
action find
entity Emma Tiger Schweiger
relation sister
type common name
['Lilli Schweiger', 'sister', {'concept': 'common name'}] ['Luna Schweiger', 'sister', {'concept': 'common name'}] ['Emma Tiger Schweiger', 'sister', {'concept': 'common name'}]
SELECT DISTINCT ?p WHERE { ?j property:sister ?p . VALUES ( ?j ) { ( resource:Lilli_Schweiger ) ( resource:Luna_Schweiger ) } }
[]
common name
Q92052 Q92052 Q92071
SYSTEM
Luna Schweiger for 3rd, Emma Tiger Schweiger for 1st, 2nd
Q92071 Q92052 Q100175 Q92052 Q100175 Q92071
(Q100175,P9,c(Q502895)) (Q92071,P9,c(Q502895)) (Q92052,P9,c(Q502895))
action union
action filter_type
action find
entity Q100175
relation P9
type Q502895
action filter_type
action find
entity Q92071
relation P9
type Q502895
action filter_type
action find
entity Q92052
relation P9
type Q502895
[ANSWERS]
['Q100175', 'P9', {'concept': 'Q502895'}] ['Q92071', 'P9', {'concept': 'Q502895'}] ['Q92052', 'P9', {'concept': 'Q502895'}]
SELECT DISTINCT ?p WHERE { ?j property:P9 ?p . VALUES ( ?j ) { ( resource:Q100175 ) ( resource:Q92071 ) } }
Luna Schweiger Emma Tiger Schweiger Lilli Schweiger Emma Tiger Schweiger Lilli Schweiger Luna Schweiger
Emma Tiger Schweiger, Emma Tiger Schweiger and Luna Schweiger are the sisters of Lilli Schweiger, Luna Schweiger and Emma Tiger Schweiger
Emma Tiger Schweiger Emma Tiger Schweiger Luna Schweiger
action union
action filter_type
action find
entity Lilli Schweiger
relation sister
type common name
action filter_type
action find
entity Luna Schweiger
relation sister
type common name
action filter_type
action find
entity Emma Tiger Schweiger
relation sister
type common name
['Lilli Schweiger', 'sister', {'concept': 'common name'}] ['Luna Schweiger', 'sister', {'concept': 'common name'}] ['Emma Tiger Schweiger', 'sister', {'concept': 'common name'}]
SELECT DISTINCT ?p WHERE { ?j property:sister ?p . VALUES ( ?j ) { ( resource:Lilli_Schweiger ) ( resource:Luna_Schweiger ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q92067
P40
Q502895
USER
Whose child are Valentin Schweiger ?
(c(Q502895),P40,Q92067)
action filter_type
action find_reverse
entity Q92067
relation P40
type Q502895
[{'concept': 'Q502895'}, 'P40', 'Q92067']
SELECT DISTINCT ?k WHERE { ?k property:P40 resource:Q92067 . ?k rdf:type ontology:Q502895 }
Valentin Schweiger
action filter_type
action find_reverse
entity Valentin Schweiger
relation child
type common name
[{'concept': 'common name'}, 'child', 'Valentin Schweiger']
SELECT DISTINCT ?k WHERE { ?k property:child resource:Valentin_Schweiger . ?k rdf:type ontology:common_name }
[]
common name
Q57391 Q1159234
SYSTEM
Til Schweiger, Dana Schweiger
Q57391 Q1159234
(c(Q502895),P40,Q92067)
action filter_type
action find_reverse
entity Q92067
relation P40
type Q502895
Son [ANSWERS] are Valentin Schweiger
[{'concept': 'Q502895'}, 'P40', 'Q92067']
SELECT DISTINCT ?k WHERE { ?k property:P40 resource:Q92067 . ?k rdf:type ontology:Q502895 }
Til Schweiger Dana Schweiger
Son Til Schweiger and Dana Schweiger are Valentin Schweiger
Til Schweiger Dana Schweiger
action filter_type
action find_reverse
entity Valentin Schweiger
relation child
type common name
[{'concept': 'common name'}, 'child', 'Valentin Schweiger']
SELECT DISTINCT ?k WHERE { ?k property:child resource:Valentin_Schweiger . ?k rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q57391 Q1159234
P40
Q502895
USER
Who are the children of Til Schweiger and Dana Schweiger ?
(Q57391,P40,c(Q502895)) (Q1159234,P40,c(Q502895))
action union
action filter_type
action find
entity Q57391
relation P40
type Q502895
action filter_type
action find
entity Q1159234
relation P40
type Q502895
['Q57391', 'P40', {'concept': 'Q502895'}] ['Q1159234', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ?a WHERE { { resource:Q57391 property:P40 ?a . ?a rdf:type ontology:Q502895 } UNION { resource:Q1159234 property:P40 ?a . ?a rdf:type ontology:Q502895 } }
Til Schweiger Dana Schweiger
action union
action filter_type
action find
entity Til Schweiger
relation child
type common name
action filter_type
action find
entity Dana Schweiger
relation child
type common name
['Til Schweiger', 'child', {'concept': 'common name'}] ['Dana Schweiger', 'child', {'concept': 'common name'}]
SELECT DISTINCT ?a WHERE { { resource:Til_Schweiger property:child ?a . ?a rdf:type ontology:common_name } UNION { resource:Dana_Schweiger property:child ?a . ?a rdf:type ontology:common_name } }
[]
common name
Q92052 Q92052 Q100175
SYSTEM
Lilli Schweiger for 3rd, Emma Tiger Schweiger for 1st, 2nd
Q92067 Q100175 Q92071 Q92052 Q92067 Q100175 Q92071 Q92052
(Q57391,P40,c(Q502895)) (Q1159234,P40,c(Q502895))
action union
action filter_type
action find
entity Q57391
relation P40
type Q502895
action filter_type
action find
entity Q1159234
relation P40
type Q502895
[ANSWERS]
['Q57391', 'P40', {'concept': 'Q502895'}] ['Q1159234', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ?a WHERE { { resource:Q57391 property:P40 ?a . ?a rdf:type ontology:Q502895 } UNION { resource:Q1159234 property:P40 ?a . ?a rdf:type ontology:Q502895 } }
Valentin Schweiger Lilli Schweiger Luna Schweiger Emma Tiger Schweiger Valentin Schweiger Lilli Schweiger Luna Schweiger Emma Tiger Schweiger
The children of Til Schweiger and Dana Schweiger are named Emma Tiger Schweiger, Emma Tiger Schweiger and Lilli Schweiger
Emma Tiger Schweiger Emma Tiger Schweiger Lilli Schweiger
action union
action filter_type
action find
entity Til Schweiger
relation child
type common name
action filter_type
action find
entity Dana Schweiger
relation child
type common name
['Til Schweiger', 'child', {'concept': 'common name'}] ['Dana Schweiger', 'child', {'concept': 'common name'}]
SELECT DISTINCT ?a WHERE { { resource:Til_Schweiger property:child ?a . ?a rdf:type ontology:common_name } UNION { resource:Dana_Schweiger property:child ?a . ?a rdf:type ontology:common_name } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q92052
P21
Q290
USER
Which sex does that person belong to ?
(Q92052,P21,c(Q290))
action filter_type
action find
entity Q92052
relation P21
type Q290
['Q92052', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?f WHERE { resource:Q92052 property:P21 ?f . ?f rdf:type ontology:Q290 }
Emma Tiger Schweiger
action filter_type
action find
entity Emma Tiger Schweiger
relation gender
type sex
['Emma Tiger Schweiger', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?f WHERE { resource:Emma_Tiger_Schweiger property:gender ?f . ?f rdf:type ontology:sex }
[]
sex
Clarification for simple ques.
Q92052
SYSTEM
Did you mean Emma Tiger Schweiger ?
Q92052 Q92052 Q100175
(Q92052,P21,c(Q290)) (Q92052,P21,c(Q290)) (Q100175,P21,c(Q290))
[ANSWER]
['Q92052', 'P21', {'concept': 'Q290'}] ['Q92052', 'P21', {'concept': 'Q290'}] ['Q100175', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?f WHERE { resource:Q92052 property:P21 ?f . ?f rdf:type ontology:Q290 }
Emma Tiger Schweiger Emma Tiger Schweiger Lilli Schweiger
Did you mean Emma Tiger Schweiger ?
Emma Tiger Schweiger
['Emma Tiger Schweiger', 'gender', {'concept': 'sex'}] ['Emma Tiger Schweiger', 'gender', {'concept': 'sex'}] ['Lilli Schweiger', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?f WHERE { resource:Emma_Tiger_Schweiger property:gender ?f . ?f rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
USER
Yes
(Q92052,P21,c(Q290))
['Q92052', 'P21', {'concept': 'Q290'}]
['Emma Tiger Schweiger', 'gender', {'concept': 'sex'}]
[]
Q6581072
SYSTEM
female
Q6581072
(Q92052,P21,c(Q290))
action filter_type
action find
entity Q92052
relation P21
type Q290
That person belongs to [ANSWER]
['Q92052', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?f WHERE { resource:Q92052 property:P21 ?f . ?f rdf:type ontology:Q290 }
female
That person belongs to female
female
action filter_type
action find
entity Emma Tiger Schweiger
relation gender
type sex
['Emma Tiger Schweiger', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?f WHERE { resource:Emma_Tiger_Schweiger property:gender ?f . ?f rdf:type ontology:sex }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P1303
Q34379 Q502895
USER
Which musical instruments are played by max number of people ?
(c(Q502895),P1303,Q3623688)
action argmax
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
[{'concept': 'Q502895'}, 'P1303', 'Q3623688']
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( MAX ( ?t ) AS ?d ) { SELECT DISTINCT ?j ( COUNT ( ?e ) AS ?t ) WHERE { ?e property:P1303 ?j . ?j rdf:type ontology:Q34379 . ?e rdf:type ontology:Q502895 } GROUP BY ?j } } . { SELECT DISTINCT ?m ( COUNT ( ?n ) AS ?s ) WHERE { ?n property:P1303 ?m . ?m rdf:type ontology:Q34379 . ?n rdf:type ontology:Q502895 } GROUP BY ?m } . FILTER ( ?s = ?d ) }
action argmax
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
[{'concept': 'common name'}, 'instrument', 'Paraguayan harp']
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( MAX ( ?t ) AS ?d ) { SELECT DISTINCT ?j ( COUNT ( ?e ) AS ?t ) WHERE { ?e property:instrument ?j . ?j rdf:type ontology:musical_instrument . ?e rdf:type ontology:common_name } GROUP BY ?j } } . { SELECT DISTINCT ?m ( COUNT ( ?n ) AS ?s ) WHERE { ?n property:instrument ?m . ?m rdf:type ontology:musical_instrument . ?n rdf:type ontology:common_name } GROUP BY ?m } . FILTER ( ?s = ?d ) }
[]
musical instrument common name
Q5994
SYSTEM
piano
Q5994
(c(Q502895),P1303,Q3623688)
action argmax
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
[ANSWER] is played by max number of people
[{'concept': 'Q502895'}, 'P1303', 'Q3623688']
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( MAX ( ?t ) AS ?d ) { SELECT DISTINCT ?j ( COUNT ( ?e ) AS ?t ) WHERE { ?e property:P1303 ?j . ?j rdf:type ontology:Q34379 . ?e rdf:type ontology:Q502895 } GROUP BY ?j } } . { SELECT DISTINCT ?m ( COUNT ( ?n ) AS ?s ) WHERE { ?n property:P1303 ?m . ?m rdf:type ontology:Q34379 . ?n rdf:type ontology:Q502895 } GROUP BY ?m } . FILTER ( ?s = ?d ) }
piano
Piano is played by max number of people
piano
action argmax
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
[{'concept': 'common name'}, 'instrument', 'Paraguayan harp']
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( MAX ( ?t ) AS ?d ) { SELECT DISTINCT ?j ( COUNT ( ?e ) AS ?t ) WHERE { ?e property:instrument ?j . ?j rdf:type ontology:musical_instrument . ?e rdf:type ontology:common_name } GROUP BY ?j } } . { SELECT DISTINCT ?m ( COUNT ( ?n ) AS ?s ) WHERE { ?n property:instrument ?m . ?m rdf:type ontology:musical_instrument . ?n rdf:type ontology:common_name } GROUP BY ?m } . FILTER ( ?s = ?d ) }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5994
P180
Q838948
USER
Which work of art depicts that musical instrument ?
(c(Q838948),P180,Q5994)
action filter_type
action find_reverse
entity Q5994
relation P180
type Q838948
[{'concept': 'Q838948'}, 'P180', 'Q5994']
SELECT DISTINCT ?a WHERE { ?a property:P180 resource:Q5994 . ?a rdf:type ontology:Q838948 }
piano
action filter_type
action find_reverse
entity piano
relation depicts
type work of art
[{'concept': 'work of art'}, 'depicts', 'piano']
SELECT DISTINCT ?a WHERE { ?a property:depicts resource:piano . ?a rdf:type ontology:work_of_art }
[]
work of art
Q23641920
SYSTEM
Monument to Frédéric Chopin
Q23641920
(c(Q838948),P180,Q5994)
action filter_type
action find_reverse
entity Q5994
relation P180
type Q838948
The [ANSWER] depicts that musical instrument
[{'concept': 'Q838948'}, 'P180', 'Q5994']
SELECT DISTINCT ?a WHERE { ?a property:P180 resource:Q5994 . ?a rdf:type ontology:Q838948 }
Monument to Frédéric Chopin
The Monument to Frédéric Chopin depicts that musical instrument
Monument to Frédéric Chopin
action filter_type
action find_reverse
entity piano
relation depicts
type work of art
[{'concept': 'work of art'}, 'depicts', 'piano']
SELECT DISTINCT ?a WHERE { ?a property:depicts resource:piano . ?a rdf:type ontology:work_of_art }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q1444320 Q57391
P47 P27
Q1048835
USER
Which political territories are Til Schweiger a civilian of or share the border with Hazas de Cesto ?
OR((Q57391,P27,c(Q1048835)), (Q1444320,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q57391
relation P27
action find
entity Q1444320
relation P47
type Q1048835
{'OR': [['Q57391', 'P27', {'concept': 'Q1048835'}], ['Q1444320', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Q57391 property:P27 ?w } UNION { resource:Q1444320 property:P47 ?w } } . ?w rdf:type ontology:Q1048835 }
Hazas de Cesto Til Schweiger
action filter_type
action union
action find
entity Til Schweiger
relation country of citizenship
action find
entity Hazas de Cesto
relation shares border with
type political territorial entity
{'OR': [['Til Schweiger', 'country of citizenship', {'concept': 'political territorial entity'}], ['Hazas de Cesto', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Til_Schweiger property:country_of_citizenship ?w } UNION { resource:Hazas_de_Cesto property:shares_border_with ?w } } . ?w rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q782938 Q641071 Q944551 Q183 Q1602418 Q1443842 Q1641505
SYSTEM
Meruelo, Escalante, Solórzano, Germany, Ribamontán al Monte, Bárcena de Cicero, Voto
Q782938 Q641071 Q944551 Q183 Q1602418 Q1443842 Q1641505
OR((Q57391,P27,c(Q1048835)), (Q1444320,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q57391
relation P27
action find
entity Q1444320
relation P47
type Q1048835
[ANSWERS] are Til Schweiger a civilian of or share the border with Hazas de Cesto
{'OR': [['Q57391', 'P27', {'concept': 'Q1048835'}], ['Q1444320', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Q57391 property:P27 ?w } UNION { resource:Q1444320 property:P47 ?w } } . ?w rdf:type ontology:Q1048835 }
Meruelo Escalante Solórzano Germany Ribamontán al Monte Bárcena de Cicero Voto
Meruelo, Escalante, Solórzano, Germany, Ribamontán al Monte, Bárcena de Cicero and Voto are Til Schweiger a civilian of or share the border with Hazas de Cesto
Meruelo Escalante Solórzano Germany Ribamontán al Monte Bárcena de Cicero Voto
action filter_type
action union
action find
entity Til Schweiger
relation country of citizenship
action find
entity Hazas de Cesto
relation shares border with
type political territorial entity
{'OR': [['Til Schweiger', 'country of citizenship', {'concept': 'political territorial entity'}], ['Hazas de Cesto', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Til_Schweiger property:country_of_citizenship ?w } UNION { resource:Hazas_de_Cesto property:shares_border_with ?w } } . ?w rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q1048835 Q1048835
USER
How many political territories are known to have diplomatic connections with around 8 political territories ?
(c(Q1048835),P530,c(Q1048835))
action count
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
value 8
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?j ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?o ) AS ?h ) WHERE { ?t property:P530 ?o . ?o rdf:type ontology:Q1048835 . ?t rdf:type ontology:Q1048835 } GROUP BY ?t } . FILTER ( ?h = 8 ) }
action count
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
value 8
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?j ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?o ) AS ?h ) WHERE { ?t property:diplomatic_relation ?o . ?o rdf:type ontology:political_territorial_entity . ?t rdf:type ontology:political_territorial_entity } GROUP BY ?t } . FILTER ( ?h = 8 ) }
[]
political territorial entity political territorial entity
SYSTEM
1
Q183
(c(Q1048835),P530,c(Q1048835))
action count
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
value 8
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?j ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?o ) AS ?h ) WHERE { ?t property:P530 ?o . ?o rdf:type ontology:Q1048835 . ?t rdf:type ontology:Q1048835 } GROUP BY ?t } . FILTER ( ?h = 8 ) }
Germany
1
action count
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
value 8
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?j ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?o ) AS ?h ) WHERE { ?t property:diplomatic_relation ?o . ?o rdf:type ontology:political_territorial_entity . ?t rdf:type ontology:political_territorial_entity } GROUP BY ?t } . FILTER ( ?h = 8 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q183 Q31
P530
Q1048835
USER
How many political territories have a diplomatic relationship with Germany or Belgium ?
(Q183,P530,c(Q1048835)) (Q31,P530,c(Q1048835))
action count
action union
action filter_type
action find
entity Q183
relation P530
type Q1048835
action filter_type
action find
entity Q31
relation P530
type Q1048835
['Q183', 'P530', {'concept': 'Q1048835'}] ['Q31', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?w ) WHERE { { resource:Q183 property:P530 ?f . ?f rdf:type ontology:Q1048835 } UNION { ?f rdf:type ontology:Q1048835 . resource:Q31 property:P530 ?f } }
Germany Belgium
action count
action union
action filter_type
action find
entity Germany
relation diplomatic relation
type political territorial entity
action filter_type
action find
entity Belgium
relation diplomatic relation
type political territorial entity
['Germany', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Belgium', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?w ) WHERE { { resource:Germany property:diplomatic_relation ?f . ?f rdf:type ontology:political_territorial_entity } UNION { ?f rdf:type ontology:political_territorial_entity . resource:Belgium property:diplomatic_relation ?f } }
[]
political territorial entity
SYSTEM
7
Q408 Q1000 Q35 Q40 Q16 Q664 Q183
(Q183,P530,c(Q1048835)) (Q31,P530,c(Q1048835))
action count
action union
action filter_type
action find
entity Q183
relation P530
type Q1048835
action filter_type
action find
entity Q31
relation P530
type Q1048835
[ANSWER]
['Q183', 'P530', {'concept': 'Q1048835'}] ['Q31', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?w ) WHERE { { resource:Q183 property:P530 ?f . ?f rdf:type ontology:Q1048835 } UNION { ?f rdf:type ontology:Q1048835 . resource:Q31 property:P530 ?f } }
Australia Gabon Denmark Austria Canada New Zealand Germany
7
action count
action union
action filter_type
action find
entity Germany
relation diplomatic relation
type political territorial entity
action filter_type
action find
entity Belgium
relation diplomatic relation
type political territorial entity
['Germany', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Belgium', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?w ) WHERE { { resource:Germany property:diplomatic_relation ?f . ?f rdf:type ontology:political_territorial_entity } UNION { ?f rdf:type ontology:political_territorial_entity . resource:Belgium property:diplomatic_relation ?f } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q183
P530
Q15617994
USER
How many administrative territories have diplomatic relations with Germany ?
(Q183,P530,c(Q15617994))
action count
action filter_type
action find
entity Q183
relation P530
type Q15617994
['Q183', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?r ) WHERE { resource:Q183 property:P530 ?y . ?y rdf:type ontology:Q15617994 }
Germany
action count
action filter_type
action find
entity Germany
relation diplomatic relation
type designation for an administrative territorial entity
['Germany', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?r ) WHERE { resource:Germany property:diplomatic_relation ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
124
Q804 Q801 Q800 Q419 Q668 Q414 Q142 Q55 Q145 Q262 Q148 Q783 Q265 Q833 Q711 Q717 Q252 Q403 Q657 Q258 Q45 Q159 Q43 Q41 Q155 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q739 Q241 Q242 Q811 Q33 Q32 Q31 Q30 Q924 Q36 Q34 Q929 Q39 Q38 Q986 Q423 Q983 Q851 Q733 Q734 Q736 Q730 Q230 Q232 Q233 Q238 Q20 Q1045 Q1041 Q27 Q28 Q29 Q1049 Q189 Q843 Q184 Q1029 Q1028 Q786 Q228 Q227 Q225 Q224 Q222 Q96 Q229 Q347 Q17 Q902 Q1036 Q1037 Q1008 Q1032 Q1033 Q1030 Q965 Q967 Q962 Q963 Q298 Q115 Q114 Q117 Q750 Q212 Q213 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q1009 Q974 Q971 Q79 Q77 Q878 Q774 Q948 Q810 Q1019 Q1016 Q1011 Q945 Q869 Q953
(Q183,P530,c(Q15617994))
action count
action filter_type
action find
entity Q183
relation P530
type Q15617994
[ANSWER]
['Q183', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?r ) WHERE { resource:Q183 property:P530 ?y . ?y rdf:type ontology:Q15617994 }
Panama Israel Costa Rica Peru India Argentina France Netherlands United Kingdom Algeria People's Republic of China Honduras Uzbekistan Malaysia Mongolia Venezuela Indonesia Serbia Chad South Africa Portugal Russia Turkey Greece Brazil Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Colombia Cuba Belize Nicaragua Finland Luxembourg Belgium United States of America Tanzania Poland Sweden Central African Republic Switzerland Italy Eritrea North Korea Equatorial Guinea Saudi Arabia Paraguay Guyana Ecuador Suriname Georgia Kazakhstan Malta San Marino Norway Somalia Senegal Ireland Hungary Spain Sudan Iceland Pakistan Belarus Mozambique Morocco Dominican Republic Andorra Azerbaijan Bosnia and Herzegovina Croatia Albania Mexico Cyprus Liechtenstein Japan Bangladesh Uganda Rwanda Côte d'Ivoire Niger Nigeria Namibia Burkina Faso Burundi Benin Botswana Chile Ethiopia Kenya Ghana Bolivia Ukraine Czech Republic Republic of Moldova Slovakia Slovenia Romania Bulgaria Mali Bhutan Angola Guinea-Bissau Guinea Gambia Cameroon Democratic Republic of the Congo Republic of the Congo Egypt Uruguay United Arab Emirates Guatemala Tunisia Jordan Madagascar Libya Cape Verde Togo Thailand Zambia
124
action count
action filter_type
action find
entity Germany
relation diplomatic relation
type designation for an administrative territorial entity
['Germany', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?r ) WHERE { resource:Germany property:diplomatic_relation ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Incomplete
Q794
P530
Q15617994
USER
And how about Iran?
(Q794,P530,c(Q15617994))
action count
action filter_type
action find
entity Q794
relation P530
type Q15617994
['Q794', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?x ) WHERE { resource:Q794 property:P530 ?m . ?m rdf:type ontology:Q15617994 }
Iran
action count
action filter_type
action find
entity Iran
relation diplomatic relation
type designation for an administrative territorial entity
['Iran', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?x ) WHERE { resource:Iran property:diplomatic_relation ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
4
Q805 Q801 Q155 Q38
(Q794,P530,c(Q15617994))
action count
action filter_type
action find
entity Q794
relation P530
type Q15617994
[ANSWER]
['Q794', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?x ) WHERE { resource:Q794 property:P530 ?m . ?m rdf:type ontology:Q15617994 }
Yemen Israel Brazil Italy
4
action count
action filter_type
action find
entity Iran
relation diplomatic relation
type designation for an administrative territorial entity
['Iran', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?x ) WHERE { resource:Iran property:diplomatic_relation ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]