Simple Question (Direct)
Simple Question
Q2049763
P86
Q502895
USER
Who wrote the music for Monsieur Hawarden ?
(Q2049763,P86,c(Q502895))
action filter_type
action find
entity Q2049763
relation P86
type Q502895
['Q2049763', 'P86', {'concept': 'Q502895'}]
SELECT DISTINCT ?q WHERE { resource:Q2049763 property:P86 ?q . ?q rdf:type ontology:Q502895 }
Monsieur Hawarden
action filter_type
action find
entity Monsieur Hawarden
relation composer
type common name
['Monsieur Hawarden', 'composer', {'concept': 'common name'}]
SELECT DISTINCT ?q WHERE { resource:Monsieur_Hawarden property:composer ?q . ?q rdf:type ontology:common_name }
[]
common name
Q2093167
SYSTEM
Pierre Bartholomée
Q2093167
(Q2049763,P86,c(Q502895))
action filter_type
action find
entity Q2049763
relation P86
type Q502895
[ANSWER] wrote the music for Monsieur Hawarden
['Q2049763', 'P86', {'concept': 'Q502895'}]
SELECT DISTINCT ?q WHERE { resource:Q2049763 property:P86 ?q . ?q rdf:type ontology:Q502895 }
Pierre Bartholomée
Pierre Bartholomée wrote the music for Monsieur Hawarden
Pierre Bartholomée
action filter_type
action find
entity Monsieur Hawarden
relation composer
type common name
['Monsieur Hawarden', 'composer', {'concept': 'common name'}]
SELECT DISTINCT ?q WHERE { resource:Monsieur_Hawarden property:composer ?q . ?q rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2049763
P58
Q502895
USER
Who was the screenwriter for Monsieur Hawarden ?
(Q2049763,P58,c(Q502895))
action filter_type
action find
entity Q2049763
relation P58
type Q502895
['Q2049763', 'P58', {'concept': 'Q502895'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q502895 . resource:Q2049763 property:P58 ?l }
Monsieur Hawarden
action filter_type
action find
entity Monsieur Hawarden
relation screenwriter
type common name
['Monsieur Hawarden', 'screenwriter', {'concept': 'common name'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:common_name . resource:Monsieur_Hawarden property:screenwriter ?l }
[]
common name
Q1586638
SYSTEM
Harry Kümel
Q1586638
(Q2049763,P58,c(Q502895))
action filter_type
action find
entity Q2049763
relation P58
type Q502895
The screenwriter for Monsieur Hawarden was awarded [ANSWER]
['Q2049763', 'P58', {'concept': 'Q502895'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q502895 . resource:Q2049763 property:P58 ?l }
Harry Kümel
The screenwriter for Monsieur Hawarden was awarded Harry Kümel
Harry Kümel
action filter_type
action find
entity Monsieur Hawarden
relation screenwriter
type common name
['Monsieur Hawarden', 'screenwriter', {'concept': 'common name'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:common_name . resource:Monsieur_Hawarden property:screenwriter ?l }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2049763
P161
Q502895
USER
Which people are in that work of art ?
(Q1586638,P161,c(Q502895))
action filter_type
action find
entity Q2049763
relation P161
type Q502895
['Q1586638', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?y WHERE { resource:Q2049763 property:P161 ?y . ?y rdf:type ontology:Q502895 }
Monsieur Hawarden
action filter_type
action find
entity Monsieur Hawarden
relation cast member
type common name
['Harry Kümel', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?y WHERE { resource:Monsieur_Hawarden property:cast_member ?y . ?y rdf:type ontology:common_name }
[]
common name
Q2547878 Q2524337 Q2333394
SYSTEM
Ellen Vogel, Senne Rouffaer, Dora van der Groen
Q2547878 Q2524337 Q2333394
(Q1586638,P161,c(Q502895))
action filter_type
action find
entity Q2049763
relation P161
type Q502895
[ANSWERS] are in that work of art
['Q1586638', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?y WHERE { resource:Q2049763 property:P161 ?y . ?y rdf:type ontology:Q502895 }
Ellen Vogel Senne Rouffaer Dora van der Groen
Ellen Vogel, Senne Rouffaer and Dora van der Groen are in that work of art
Ellen Vogel Senne Rouffaer Dora van der Groen
action filter_type
action find
entity Monsieur Hawarden
relation cast member
type common name
['Harry Kümel', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?y WHERE { resource:Monsieur_Hawarden property:cast_member ?y . ?y rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q2547878
P19
Q56061
USER
How many administrative territories are the birthplace of Ellen Vogel ?
(Q2547878,P19,c(Q56061))
action count
action filter_type
action find
entity Q2547878
relation P19
type Q56061
['Q2547878', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?p ) WHERE { resource:Q2547878 property:P19 ?n . ?n rdf:type ontology:Q56061 }
Ellen Vogel
action count
action filter_type
action find
entity Ellen Vogel
relation place of birth
type administrative territorial entity
['Ellen Vogel', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?p ) WHERE { resource:Ellen_Vogel property:place_of_birth ?n . ?n rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
SYSTEM
1
Q36600
(Q2547878,P19,c(Q56061))
action count
action filter_type
action find
entity Q2547878
relation P19
type Q56061
[ANSWER]
['Q2547878', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?p ) WHERE { resource:Q2547878 property:P19 ?n . ?n rdf:type ontology:Q56061 }
The Hague
1
action count
action filter_type
action find
entity Ellen Vogel
relation place of birth
type administrative territorial entity
['Ellen Vogel', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?p ) WHERE { resource:Ellen_Vogel property:place_of_birth ?n . ?n rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q5551701
Q56061
USER
And how about Björn Ahlander?
(Q5551701,P19,c(Q56061))
action count
action filter_type
action find
entity Q5551701
relation P19
type Q56061
['Q5551701', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?y ) WHERE { resource:Q5551701 property:P19 ?j . ?j rdf:type ontology:Q56061 }
Björn Ahlander
action count
action filter_type
action find
entity Björn Ahlander
relation place of birth
type administrative territorial entity
['Björn Ahlander', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?y ) WHERE { resource:Björn_Ahlander property:place_of_birth ?j . ?j rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
SYSTEM
1
(Q5551701,P19,c(Q56061))
action count
action filter_type
action find
entity Q5551701
relation P19
type Q56061
[ANSWER]
['Q5551701', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?y ) WHERE { resource:Q5551701 property:P19 ?j . ?j rdf:type ontology:Q56061 }
1
action count
action filter_type
action find
entity Björn Ahlander
relation place of birth
type administrative territorial entity
['Björn Ahlander', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?y ) WHERE { resource:Björn_Ahlander property:place_of_birth ?j . ?j rdf:type ontology:administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q16016360 Q2333394
P19
Q56061
USER
Which administrative territories were Dora van der Groen or Keith Alexander born in ?
OR((Q2333394,P19,c(Q56061)), (Q16016360,P19,c(Q56061)))
action filter_type
action union
action find
entity Q2333394
relation P19
action find
entity Q16016360
relation P19
type Q56061
{'OR': [['Q2333394', 'P19', {'concept': 'Q56061'}], ['Q16016360', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?c WHERE { { { resource:Q2333394 property:P19 ?c } UNION { resource:Q16016360 property:P19 ?c } } . ?c rdf:type ontology:Q56061 }
Keith Alexander Dora van der Groen
action filter_type
action union
action find
entity Dora van der Groen
relation place of birth
action find
entity Keith Alexander
relation place of birth
type administrative territorial entity
{'OR': [['Dora van der Groen', 'place of birth', {'concept': 'administrative territorial entity'}], ['Keith Alexander', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?c WHERE { { { resource:Dora_van_der_Groen property:place_of_birth ?c } UNION { resource:Keith_Alexander property:place_of_birth ?c } } . ?c rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q12892 Q18419
SYSTEM
Antwerp, Brooklyn
Q12892 Q18419
OR((Q2333394,P19,c(Q56061)), (Q16016360,P19,c(Q56061)))
action filter_type
action union
action find
entity Q2333394
relation P19
action find
entity Q16016360
relation P19
type Q56061
Dora van der Groen or Keith Alexander were born in [ANSWERS]
{'OR': [['Q2333394', 'P19', {'concept': 'Q56061'}], ['Q16016360', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?c WHERE { { { resource:Q2333394 property:P19 ?c } UNION { resource:Q16016360 property:P19 ?c } } . ?c rdf:type ontology:Q56061 }
Antwerp Brooklyn
Dora van der Groen or Keith Alexander were born in Antwerp and Brooklyn
Antwerp Brooklyn
action filter_type
action union
action find
entity Dora van der Groen
relation place of birth
action find
entity Keith Alexander
relation place of birth
type administrative territorial entity
{'OR': [['Dora van der Groen', 'place of birth', {'concept': 'administrative territorial entity'}], ['Keith Alexander', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?c WHERE { { { resource:Dora_van_der_Groen property:place_of_birth ?c } UNION { resource:Keith_Alexander property:place_of_birth ?c } } . ?c rdf:type ontology:administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q7024511 Q2049763
P20 P495
Q15617994
USER
Which administrative territories are the countries of origin of Monsieur Hawarden or did Nicarao die ?
OR((Q2049763,P495,c(Q15617994)), (Q7024511,P20,c(Q15617994)))
action filter_type
action union
action find
entity Q2049763
relation P495
action find
entity Q7024511
relation P20
type Q15617994
{'OR': [['Q2049763', 'P495', {'concept': 'Q15617994'}], ['Q7024511', 'P20', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q15617994 . { { resource:Q7024511 property:P20 ?p } UNION { resource:Q2049763 property:P495 ?p } } }
Nicarao Monsieur Hawarden
action filter_type
action union
action find
entity Monsieur Hawarden
relation country of origin
action find
entity Nicarao
relation place of death
type designation for an administrative territorial entity
{'OR': [['Monsieur Hawarden', 'country of origin', {'concept': 'designation for an administrative territorial entity'}], ['Nicarao', 'place of death', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Nicarao property:place_of_death ?p } UNION { resource:Monsieur_Hawarden property:country_of_origin ?p } } }
[]
designation for an administrative territorial entity
Q31 Q811
SYSTEM
Belgium, Nicaragua
Q31 Q811
OR((Q2049763,P495,c(Q15617994)), (Q7024511,P20,c(Q15617994)))
action filter_type
action union
action find
entity Q2049763
relation P495
action find
entity Q7024511
relation P20
type Q15617994
[ANSWERS] are the countries of origin of Monsieur Hawarden or did Nicarao die
{'OR': [['Q2049763', 'P495', {'concept': 'Q15617994'}], ['Q7024511', 'P20', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q15617994 . { { resource:Q7024511 property:P20 ?p } UNION { resource:Q2049763 property:P495 ?p } } }
Belgium Nicaragua
Belgium and Nicaragua are the countries of origin of Monsieur Hawarden or did Nicarao die
Belgium Nicaragua
action filter_type
action union
action find
entity Monsieur Hawarden
relation country of origin
action find
entity Nicarao
relation place of death
type designation for an administrative territorial entity
{'OR': [['Monsieur Hawarden', 'country of origin', {'concept': 'designation for an administrative territorial entity'}], ['Nicarao', 'place of death', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Nicarao property:place_of_death ?p } UNION { resource:Monsieur_Hawarden property:country_of_origin ?p } } }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P530
Q1048835 Q15617994
USER
How many political territories or administrative territories have diplomatic relations with that administrative territory ?
(Q31,P530,c(Q1048835)) (Q31,P530,c(Q15617994)) (Q31,P530,c(Q1048835)) (Q31,P530,c(Q15617994)) (Q811,P530,c(Q1048835)) (Q811,P530,c(Q15617994))
['Q31', 'P530', {'concept': 'Q1048835'}] ['Q31', 'P530', {'concept': 'Q15617994'}] ['Q31', 'P530', {'concept': 'Q1048835'}] ['Q31', 'P530', {'concept': 'Q15617994'}] ['Q811', 'P530', {'concept': 'Q1048835'}] ['Q811', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q19072874 property:P530 ?z } UNION { resource:Q19072874 property:P530 ?y } UNION { resource:Q19072874 property:P530 ?z } UNION { resource:Q19072874 property:P530 ?y } UNION { resource:Q811 property:P530 ?z } UNION { resource:Q811 property:P530 ?y } } . ?z rdf:type ontology:Q1048835 . ?y rdf:type ontology:Q15617994 }
['Belgium', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Belgium', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Belgium', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Belgium', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Nicaragua', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Nicaragua', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Belgium property:diplomatic_relation ?z } UNION { resource:Belgium property:diplomatic_relation ?y } UNION { resource:Belgium property:diplomatic_relation ?z } UNION { resource:Belgium property:diplomatic_relation ?y } UNION { resource:Nicaragua property:diplomatic_relation ?z } UNION { resource:Nicaragua property:diplomatic_relation ?y } } . ?z rdf:type ontology:political_territorial_entity . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
political territorial entity designation for an administrative territorial entity
Quantitative|Count|Mult. entity type|Clarification
Q31
SYSTEM
Did you mean Belgium ?
[ANSWER]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q19072874 property:P530 ?z } UNION { resource:Q19072874 property:P530 ?y } UNION { resource:Q19072874 property:P530 ?z } UNION { resource:Q19072874 property:P530 ?y } UNION { resource:Q811 property:P530 ?z } UNION { resource:Q811 property:P530 ?y } } . ?z rdf:type ontology:Q1048835 . ?y rdf:type ontology:Q15617994 }
Did you mean Belgium ?
Belgium
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Belgium property:diplomatic_relation ?z } UNION { resource:Belgium property:diplomatic_relation ?y } UNION { resource:Belgium property:diplomatic_relation ?z } UNION { resource:Belgium property:diplomatic_relation ?y } UNION { resource:Nicaragua property:diplomatic_relation ?z } UNION { resource:Nicaragua property:diplomatic_relation ?y } } . ?z rdf:type ontology:political_territorial_entity . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
USER
Yes
(Q31,P530,c(Q1048835)) (Q31,P530,c(Q15617994)) (Q31,P530,c(Q1048835)) (Q31,P530,c(Q15617994)) (Q811,P530,c(Q1048835)) (Q811,P530,c(Q15617994))
['Q31', 'P530', {'concept': 'Q1048835'}] ['Q31', 'P530', {'concept': 'Q15617994'}] ['Q31', 'P530', {'concept': 'Q1048835'}] ['Q31', 'P530', {'concept': 'Q15617994'}] ['Q811', 'P530', {'concept': 'Q1048835'}] ['Q811', 'P530', {'concept': 'Q15617994'}]
['Belgium', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Belgium', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Belgium', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Belgium', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Nicaragua', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Nicaragua', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
[]
SYSTEM
5
Q32 Q408 Q38 Q183 Q347
(Q31,P530,c(Q1048835)) (Q31,P530,c(Q15617994)) (Q31,P530,c(Q1048835)) (Q31,P530,c(Q15617994)) (Q811,P530,c(Q1048835)) (Q811,P530,c(Q15617994))
[ANSWER]
['Q31', 'P530', {'concept': 'Q1048835'}] ['Q31', 'P530', {'concept': 'Q15617994'}] ['Q31', 'P530', {'concept': 'Q1048835'}] ['Q31', 'P530', {'concept': 'Q15617994'}] ['Q811', 'P530', {'concept': 'Q1048835'}] ['Q811', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q19072874 property:P530 ?z } UNION { resource:Q19072874 property:P530 ?y } UNION { resource:Q19072874 property:P530 ?z } UNION { resource:Q19072874 property:P530 ?y } UNION { resource:Q811 property:P530 ?z } UNION { resource:Q811 property:P530 ?y } } . ?z rdf:type ontology:Q1048835 . ?y rdf:type ontology:Q15617994 }
Luxembourg Australia Italy Germany Liechtenstein
5
['Belgium', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Belgium', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Belgium', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Belgium', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Nicaragua', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Nicaragua', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Belgium property:diplomatic_relation ?z } UNION { resource:Belgium property:diplomatic_relation ?y } UNION { resource:Belgium property:diplomatic_relation ?z } UNION { resource:Belgium property:diplomatic_relation ?y } UNION { resource:Nicaragua property:diplomatic_relation ?z } UNION { resource:Nicaragua property:diplomatic_relation ?y } } . ?z rdf:type ontology:political_territorial_entity . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P206
Q337567 Q1267889 Q56061
USER
Which administrative territories are located in the neighbourhood of around 12 still waterss or waterways ?
(c(Q56061),P206,c(Q337567)|c(Q1267889))
action approx
action union
action find_tuple_counts
relation P206
type Q56061
type Q337567
action find_tuple_counts
relation P206
type Q56061
type Q1267889
value 12
[{'concept': 'Q56061'}, 'P206', [{'concept': 'Q337567'}, {'concept': 'Q1267889'}]]
SELECT DISTINCT ?m WHERE { FILTER ( ?t = 12 ) . { SELECT DISTINCT ( COUNT ( ?p ) AS ?t ) ?m WHERE { { ?m property:P206 ?p . ?m rdf:type ontology:Q56061 . ?p rdf:type ontology:Q337567 } UNION { ?m rdf:type ontology:Q56061 . ?p rdf:type ontology:Q1267889 . ?m property:P206 ?p } } GROUP BY ?m } }
action approx
action union
action find_tuple_counts
relation located next to body of water
type administrative territorial entity
type still waters
action find_tuple_counts
relation located next to body of water
type administrative territorial entity
type waterway
value 12
[{'concept': 'administrative territorial entity'}, 'located next to body of water', [{'concept': 'still waters'}, {'concept': 'waterway'}]]
SELECT DISTINCT ?m WHERE { FILTER ( ?t = 12 ) . { SELECT DISTINCT ( COUNT ( ?p ) AS ?t ) ?m WHERE { { ?m property:located_next_to_body_of_water ?p . ?m rdf:type ontology:administrative_territorial_entity . ?p rdf:type ontology:still_waters } UNION { ?m rdf:type ontology:administrative_territorial_entity . ?p rdf:type ontology:waterway . ?m property:located_next_to_body_of_water ?p } } GROUP BY ?m } }
[]
still waters waterway administrative territorial entity
Q1709
SYSTEM
Schwerin
Q1709
(c(Q56061),P206,c(Q337567)|c(Q1267889))
action approx
action union
action find_tuple_counts
relation P206
type Q56061
type Q337567
action find_tuple_counts
relation P206
type Q56061
type Q1267889
value 12
[ANSWER] is located in the neighbourhood of around 12 still waterss or waterways
[{'concept': 'Q56061'}, 'P206', [{'concept': 'Q337567'}, {'concept': 'Q1267889'}]]
SELECT DISTINCT ?m WHERE { FILTER ( ?t = 12 ) . { SELECT DISTINCT ( COUNT ( ?p ) AS ?t ) ?m WHERE { { ?m property:P206 ?p . ?m rdf:type ontology:Q56061 . ?p rdf:type ontology:Q337567 } UNION { ?m rdf:type ontology:Q56061 . ?p rdf:type ontology:Q1267889 . ?m property:P206 ?p } } GROUP BY ?m } }
Schwerin
Schwerin is located in the neighbourhood of around 12 still waterss or waterways
Schwerin
action approx
action union
action find_tuple_counts
relation located next to body of water
type administrative territorial entity
type still waters
action find_tuple_counts
relation located next to body of water
type administrative territorial entity
type waterway
value 12
[{'concept': 'administrative territorial entity'}, 'located next to body of water', [{'concept': 'still waters'}, {'concept': 'waterway'}]]
SELECT DISTINCT ?m WHERE { FILTER ( ?t = 12 ) . { SELECT DISTINCT ( COUNT ( ?p ) AS ?t ) ?m WHERE { { ?m property:located_next_to_body_of_water ?p . ?m rdf:type ontology:administrative_territorial_entity . ?p rdf:type ontology:still_waters } UNION { ?m rdf:type ontology:administrative_territorial_entity . ?p rdf:type ontology:waterway . ?m property:located_next_to_body_of_water ?p } } GROUP BY ?m } }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q1709 Q1770
P190
Q56061
USER
Is Tallinn partner town of that one ?
(Q1709,P190,Q1770)
action is_in
entity Q1770
action find
entity Q1709
relation P190
['Q1709', 'P190', 'Q1770']
ASK WHERE { resource:Q1709 property:P190 resource:Q1770 }
Schwerin Tallinn
action is_in
entity Tallinn
action find
entity Schwerin
relation sister city
['Schwerin', 'sister city', 'Tallinn']
ASK WHERE { resource:Schwerin property:sister_city resource:Tallinn }
[]
administrative territorial entity
SYSTEM
YES
(Q1709,P190,Q1770)
action is_in
entity Q1770
action find
entity Q1709
relation P190
[ANSWER]
['Q1709', 'P190', 'Q1770']
ASK WHERE { resource:Q1709 property:P190 resource:Q1770 }
Yes
action is_in
entity Tallinn
action find
entity Schwerin
relation sister city
['Schwerin', 'sister city', 'Tallinn']
ASK WHERE { resource:Schwerin property:sister_city resource:Tallinn }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q31
P47
Q15617994 Q1048835
USER
How many administrative territories or political territories do Belgium share a border with ?
(c(Q15617994),P47,Q31) (c(Q1048835),P47,Q31)
action count
action union
action filter_type
action find_reverse
entity Q31
relation P47
type Q15617994
action filter_type
action find_reverse
entity Q31
relation P47
type Q1048835
[{'concept': 'Q15617994'}, 'P47', 'Q31'] [{'concept': 'Q1048835'}, 'P47', 'Q31']
SELECT DISTINCT ( COUNT ( ?z ) AS ?r ) WHERE { VALUES ( ?f ) { ( ontology:Q15617994 ) ( ontology:Q1048835 ) } . ?z rdf:type ?f }
Belgium
action count
action union
action filter_type
action find_reverse
entity Belgium
relation shares border with
type designation for an administrative territorial entity
action filter_type
action find_reverse
entity Belgium
relation shares border with
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Belgium'] [{'concept': 'political territorial entity'}, 'shares border with', 'Belgium']
SELECT DISTINCT ( COUNT ( ?z ) AS ?r ) WHERE { VALUES ( ?f ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:political_territorial_entity ) } . ?z rdf:type ?f }
[]
designation for an administrative territorial entity political territorial entity
SYSTEM
5
Q142 Q32 Q29999 Q55 Q183
(c(Q15617994),P47,Q31) (c(Q1048835),P47,Q31)
action count
action union
action filter_type
action find_reverse
entity Q31
relation P47
type Q15617994
action filter_type
action find_reverse
entity Q31
relation P47
type Q1048835
[ANSWER]
[{'concept': 'Q15617994'}, 'P47', 'Q31'] [{'concept': 'Q1048835'}, 'P47', 'Q31']
SELECT DISTINCT ( COUNT ( ?z ) AS ?r ) WHERE { VALUES ( ?f ) { ( ontology:Q15617994 ) ( ontology:Q1048835 ) } . ?z rdf:type ?f }
France Luxembourg Kingdom of the Netherlands Netherlands Germany
5
action count
action union
action filter_type
action find_reverse
entity Belgium
relation shares border with
type designation for an administrative territorial entity
action filter_type
action find_reverse
entity Belgium
relation shares border with
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Belgium'] [{'concept': 'political territorial entity'}, 'shares border with', 'Belgium']
SELECT DISTINCT ( COUNT ( ?z ) AS ?r ) WHERE { VALUES ( ?f ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:political_territorial_entity ) } . ?z rdf:type ?f }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q1257444 Q1586638
P136 P57
Q838948
USER
Which works of art are Harry Kümel a director of and as film adaptation as their class ?
AND((c(Q838948),P57,Q1586638), (c(Q838948),P136,Q1257444))
action filter_type
action intersection
action find_reverse
entity Q1586638
relation P57
action find_reverse
entity Q1257444
relation P136
type Q838948
{'AND': [[{'concept': 'Q838948'}, 'P57', 'Q1586638'], [{'concept': 'Q838948'}, 'P136', 'Q1257444']]}
SELECT DISTINCT ?m WHERE { ?m property:P136 resource:Q1257444 . ?m property:P57 resource:Q1586638 . ?m rdf:type ontology:Q838948 }
film adaptation Harry Kümel
action filter_type
action intersection
action find_reverse
entity Harry Kümel
relation director
action find_reverse
entity film adaptation
relation genre
type work of art
{'AND': [[{'concept': 'work of art'}, 'director', 'Harry Kümel'], [{'concept': 'work of art'}, 'genre', 'film adaptation']]}
SELECT DISTINCT ?m WHERE { ?m property:genre resource:film_adaptation . ?m property:director resource:Harry_Kümel . ?m rdf:type ontology:work_of_art }
[]
work of art
Q2049763 Q2491641 Q469218 Q2294208
SYSTEM
Monsieur Hawarden, Eline Vere, Malpertuis, De komst van Joachim Stiller
Q2049763 Q2491641 Q469218 Q2294208
AND((c(Q838948),P57,Q1586638), (c(Q838948),P136,Q1257444))
action filter_type
action intersection
action find_reverse
entity Q1586638
relation P57
action find_reverse
entity Q1257444
relation P136
type Q838948
[ANSWERS] are Harry Kümel a director of and as film adaptation as their class
{'AND': [[{'concept': 'Q838948'}, 'P57', 'Q1586638'], [{'concept': 'Q838948'}, 'P136', 'Q1257444']]}
SELECT DISTINCT ?m WHERE { ?m property:P136 resource:Q1257444 . ?m property:P57 resource:Q1586638 . ?m rdf:type ontology:Q838948 }
Monsieur Hawarden Eline Vere Malpertuis De komst van Joachim Stiller
Monsieur Hawarden, Eline Vere, Malpertuis and De komst van Joachim Stiller are Harry Kümel a director of and as film adaptation as their class
Monsieur Hawarden Eline Vere Malpertuis De komst van Joachim Stiller
action filter_type
action intersection
action find_reverse
entity Harry Kümel
relation director
action find_reverse
entity film adaptation
relation genre
type work of art
{'AND': [[{'concept': 'work of art'}, 'director', 'Harry Kümel'], [{'concept': 'work of art'}, 'genre', 'film adaptation']]}
SELECT DISTINCT ?m WHERE { ?m property:genre resource:film_adaptation . ?m property:director resource:Harry_Kümel . ?m rdf:type ontology:work_of_art }
[]