Simple Question (Direct)
Simple Question
Q18620039
P937
Q486972
USER
What is the location where Christian Justus Friedrich Traun worked ?
(Q18620039,P937,c(Q486972))
action filter_type
action find
entity Q18620039
relation P937
type Q486972
['Q18620039', 'P937', {'concept': 'Q486972'}]
SELECT DISTINCT ?k WHERE { resource:Q18620039 property:P937 ?k . ?k rdf:type ontology:Q486972 }
Christian Justus Friedrich Traun
action filter_type
action find
entity Christian Justus Friedrich Traun
relation work location
type human settlement
['Christian Justus Friedrich Traun', 'work location', {'concept': 'human settlement'}]
SELECT DISTINCT ?k WHERE { resource:Christian_Justus_Friedrich_Traun property:work_location ?k . ?k rdf:type ontology:human_settlement }
[]
human settlement
Q1055
SYSTEM
Hamburg
Q1055
(Q18620039,P937,c(Q486972))
action filter_type
action find
entity Q18620039
relation P937
type Q486972
The location Christian Justus Friedrich Traun worked is in [ANSWER]
['Q18620039', 'P937', {'concept': 'Q486972'}]
SELECT DISTINCT ?k WHERE { resource:Q18620039 property:P937 ?k . ?k rdf:type ontology:Q486972 }
Hamburg
The location Christian Justus Friedrich Traun worked is in Hamburg
Hamburg
action filter_type
action find
entity Christian Justus Friedrich Traun
relation work location
type human settlement
['Christian Justus Friedrich Traun', 'work location', {'concept': 'human settlement'}]
SELECT DISTINCT ?k WHERE { resource:Christian_Justus_Friedrich_Traun property:work_location ?k . ?k rdf:type ontology:human_settlement }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q18620039
P39
Q12737077
USER
Which occupation was a position occupied by Christian Justus Friedrich Traun ?
(Q18620039,P39,c(Q12737077))
action filter_type
action find
entity Q18620039
relation P39
type Q12737077
['Q18620039', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?o WHERE { resource:Q18620039 property:P39 ?o . ?o rdf:type ontology:Q12737077 }
Christian Justus Friedrich Traun
action filter_type
action find
entity Christian Justus Friedrich Traun
relation position held
type occupation
['Christian Justus Friedrich Traun', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?o WHERE { resource:Christian_Justus_Friedrich_Traun property:position_held ?o . ?o rdf:type ontology:occupation }
[]
occupation
Q19360355
SYSTEM
Member of the Hamburg Parliament
Q19360355
(Q18620039,P39,c(Q12737077))
action filter_type
action find
entity Q18620039
relation P39
type Q12737077
[ANSWER] was a position occupied by Christian Justus Friedrich Traun
['Q18620039', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?o WHERE { resource:Q18620039 property:P39 ?o . ?o rdf:type ontology:Q12737077 }
Member of the Hamburg Parliament
Member of the Hamburg Parliament was a position occupied by Christian Justus Friedrich Traun
Member of the Hamburg Parliament
action filter_type
action find
entity Christian Justus Friedrich Traun
relation position held
type occupation
['Christian Justus Friedrich Traun', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?o WHERE { resource:Christian_Justus_Friedrich_Traun property:position_held ?o . ?o rdf:type ontology:occupation }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P138
Q486972 Q79007 Q62447
USER
Which human settlements are namesakes of max number of streets or aerodromes ?
(c(Q79007)|c(Q62447),P138,c(Q486972))
action argmax
action union
action find_reverse_tuple_counts
relation P138
type Q486972
type Q79007
action find_reverse_tuple_counts
relation P138
type Q486972
type Q62447
[[{'concept': 'Q79007'}, {'concept': 'Q62447'}], 'P138', {'concept': 'Q486972'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( MAX ( ?u ) AS ?b ) { SELECT DISTINCT ( COUNT ( ?r ) AS ?u ) ?p WHERE { ?r rdf:type ?e . VALUES ( ?e ) { ( ontology:Q79007 ) ( ontology:Q62447 ) } } GROUP BY ?p } } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?o ) ?v WHERE { { ?f property:P138 ?v . ?f rdf:type ontology:Q79007 . ?v rdf:type ontology:Q486972 } UNION { ?f property:P138 ?v . ?v rdf:type ontology:Q486972 . ?f rdf:type ontology:Q62447 } } GROUP BY ?v } . FILTER ( ?o = ?b ) }
action argmax
action union
action find_reverse_tuple_counts
relation named after
type human settlement
type street
action find_reverse_tuple_counts
relation named after
type human settlement
type aerodrome
[[{'concept': 'street'}, {'concept': 'aerodrome'}], 'named after', {'concept': 'human settlement'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( MAX ( ?u ) AS ?b ) { SELECT DISTINCT ( COUNT ( ?r ) AS ?u ) ?p WHERE { ?r rdf:type ?e . VALUES ( ?e ) { ( ontology:street ) ( ontology:aerodrome ) } } GROUP BY ?p } } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?o ) ?v WHERE { { ?f property:named_after ?v . ?f rdf:type ontology:street . ?v rdf:type ontology:human_settlement } UNION { ?f property:named_after ?v . ?v rdf:type ontology:human_settlement . ?f rdf:type ontology:aerodrome } } GROUP BY ?v } . FILTER ( ?o = ?b ) }
[]
human settlement street aerodrome
Q896509 Q23824537 Q23824393
SYSTEM
Lichtental, Picpus, vallée de Fécamp
Q896509 Q23824537 Q23824393 Q2336899 Q2701404 Q882100
(c(Q79007)|c(Q62447),P138,c(Q486972))
action argmax
action union
action find_reverse_tuple_counts
relation P138
type Q486972
type Q79007
action find_reverse_tuple_counts
relation P138
type Q486972
type Q62447
[ANSWERS] are namesakes of max number of streets or aerodromes
[[{'concept': 'Q79007'}, {'concept': 'Q62447'}], 'P138', {'concept': 'Q486972'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( MAX ( ?u ) AS ?b ) { SELECT DISTINCT ( COUNT ( ?r ) AS ?u ) ?p WHERE { ?r rdf:type ?e . VALUES ( ?e ) { ( ontology:Q79007 ) ( ontology:Q62447 ) } } GROUP BY ?p } } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?o ) ?v WHERE { { ?f property:P138 ?v . ?f rdf:type ontology:Q79007 . ?v rdf:type ontology:Q486972 } UNION { ?f property:P138 ?v . ?v rdf:type ontology:Q486972 . ?f rdf:type ontology:Q62447 } } GROUP BY ?v } . FILTER ( ?o = ?b ) }
Lichtental Picpus vallée de Fécamp Patisia Ménilmontant Sperenberg
Lichtental, Picpus and vallée de Fécamp are namesakes of max number of streets or aerodromes
Lichtental Picpus vallée de Fécamp
action argmax
action union
action find_reverse_tuple_counts
relation named after
type human settlement
type street
action find_reverse_tuple_counts
relation named after
type human settlement
type aerodrome
[[{'concept': 'street'}, {'concept': 'aerodrome'}], 'named after', {'concept': 'human settlement'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( MAX ( ?u ) AS ?b ) { SELECT DISTINCT ( COUNT ( ?r ) AS ?u ) ?p WHERE { ?r rdf:type ?e . VALUES ( ?e ) { ( ontology:street ) ( ontology:aerodrome ) } } GROUP BY ?p } } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?o ) ?v WHERE { { ?f property:named_after ?v . ?f rdf:type ontology:street . ?v rdf:type ontology:human_settlement } UNION { ?f property:named_after ?v . ?v rdf:type ontology:human_settlement . ?f rdf:type ontology:aerodrome } } GROUP BY ?v } . FILTER ( ?o = ?b ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P276
Q486972 Q1190554 Q838948
USER
How many human settlements are approximately 2 events and works of art situated ?
(c(Q1190554)|c(Q838948),P276,c(Q486972))
action count
action approx
action union
action find_reverse_tuple_counts
relation P276
type Q486972
type Q1190554
action find_reverse_tuple_counts
relation P276
type Q486972
type Q838948
value 2
[[{'concept': 'Q1190554'}, {'concept': 'Q838948'}], 'P276', {'concept': 'Q486972'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?u ) WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?y ) ?m WHERE { { ?p property:P276 ?m . ?m rdf:type ontology:Q486972 . ?p rdf:type ontology:Q1190554 } UNION { ?p property:P276 ?m . ?m rdf:type ontology:Q486972 . ?p rdf:type ontology:Q838948 } } GROUP BY ?m } . FILTER ( ?y = 2 ) }
action count
action approx
action union
action find_reverse_tuple_counts
relation location
type human settlement
type event
action find_reverse_tuple_counts
relation location
type human settlement
type work of art
value 2
[[{'concept': 'event'}, {'concept': 'work of art'}], 'location', {'concept': 'human settlement'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?u ) WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?y ) ?m WHERE { { ?p property:location ?m . ?m rdf:type ontology:human_settlement . ?p rdf:type ontology:event } UNION { ?p property:location ?m . ?m rdf:type ontology:human_settlement . ?p rdf:type ontology:work_of_art } } GROUP BY ?m } . FILTER ( ?y = 2 ) }
[]
human settlement event work of art
SYSTEM
18
Q325652 Q192508 Q31487 Q1799 Q1792 Q4176992 Q106274 Q585145 Q267874 Q568611 Q132499 Q215633 Q1292442 Q6551179 Q624352 Q461287 Q14835 Q200441
(c(Q1190554)|c(Q838948),P276,c(Q486972))
action count
action approx
action union
action find_reverse_tuple_counts
relation P276
type Q486972
type Q1190554
action find_reverse_tuple_counts
relation P276
type Q486972
type Q838948
value 2
[ANSWER]
[[{'concept': 'Q1190554'}, {'concept': 'Q838948'}], 'P276', {'concept': 'Q486972'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?u ) WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?y ) ?m WHERE { { ?p property:P276 ?m . ?m rdf:type ontology:Q486972 . ?p rdf:type ontology:Q1190554 } UNION { ?p property:P276 ?m . ?m rdf:type ontology:Q486972 . ?p rdf:type ontology:Q838948 } } GROUP BY ?m } . FILTER ( ?y = 2 ) }
Tinian Bergen op Zoom Kraków Wrocław Gdańsk Coal Harbour Legnica Dara Civic Center Cannae Höchst Łomża Suomenlinna Lincoln Village Hollabrunn Ostrołęka Bautzen Antioch
18
action count
action approx
action union
action find_reverse_tuple_counts
relation location
type human settlement
type event
action find_reverse_tuple_counts
relation location
type human settlement
type work of art
value 2
[[{'concept': 'event'}, {'concept': 'work of art'}], 'location', {'concept': 'human settlement'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?u ) WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?y ) ?m WHERE { { ?p property:location ?m . ?m rdf:type ontology:human_settlement . ?p rdf:type ontology:event } UNION { ?p property:location ?m . ?m rdf:type ontology:human_settlement . ?p rdf:type ontology:work_of_art } } GROUP BY ?m } . FILTER ( ?y = 2 ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q265906 Q23824393
P17
Q15617994
USER
Which administrative territories are vallée de Fécamp or Suchonice located in ?
OR((Q23824393,P17,c(Q15617994)), (Q265906,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q23824393
relation P17
action find
entity Q265906
relation P17
type Q15617994
{'OR': [['Q23824393', 'P17', {'concept': 'Q15617994'}], ['Q265906', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Q23824393 property:P17 ?f } UNION { resource:Q265906 property:P17 ?f } } . ?f rdf:type ontology:Q15617994 }
Suchonice vallée de Fécamp
action filter_type
action union
action find
entity vallée de Fécamp
relation country
action find
entity Suchonice
relation country
type designation for an administrative territorial entity
{'OR': [['vallée de Fécamp', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Suchonice', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?f WHERE { { { resource:vallée_de_Fécamp property:country ?f } UNION { resource:Suchonice property:country ?f } } . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142 Q213
SYSTEM
France, Czech Republic
Q142 Q213
OR((Q23824393,P17,c(Q15617994)), (Q265906,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q23824393
relation P17
action find
entity Q265906
relation P17
type Q15617994
Vallée de Fécamp or Suchonice are located in [ANSWERS]
{'OR': [['Q23824393', 'P17', {'concept': 'Q15617994'}], ['Q265906', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Q23824393 property:P17 ?f } UNION { resource:Q265906 property:P17 ?f } } . ?f rdf:type ontology:Q15617994 }
France Czech Republic
Vallée de Fécamp or Suchonice are located in France and Czech Republic
France Czech Republic
action filter_type
action union
action find
entity vallée de Fécamp
relation country
action find
entity Suchonice
relation country
type designation for an administrative territorial entity
{'OR': [['vallée de Fécamp', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Suchonice', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?f WHERE { { { resource:vallée_de_Fécamp property:country ?f } UNION { resource:Suchonice property:country ?f } } . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q467233
P17
Q476300
USER
Are Entente Florale situated in those administrative territories ?
(Q467233,P17,Q142) (Q467233,P17,Q213)
action is_in
entity prev_answer
action find
entity Q467233
relation P17
['Q467233', 'P17', 'Q142'] ['Q467233', 'P17', 'Q213']
ASK WHERE { VALUES ( ?r ) { ( resource:Q142 ) ( resource:Q213 ) } . resource:Q467233 property:P17 ?r }
Entente Florale
action is_in
entity prev_answer
action find
entity Entente Florale
relation country
['Entente Florale', 'country', 'France'] ['Entente Florale', 'country', 'Czech Republic']
ASK WHERE { VALUES ( ?r ) { ( resource:France ) ( resource:Czech_Republic ) } . resource:Entente_Florale property:country ?r }
[]
competition
SYSTEM
YES
(Q467233,P17,Q142) (Q467233,P17,Q213)
action is_in
entity prev_answer
action find
entity Q467233
relation P17
[ANSWER]
['Q467233', 'P17', 'Q142'] ['Q467233', 'P17', 'Q213']
ASK WHERE { VALUES ( ?r ) { ( resource:Q142 ) ( resource:Q213 ) } . resource:Q467233 property:P17 ?r }
Yes
action is_in
entity prev_answer
action find
entity Entente Florale
relation country
['Entente Florale', 'country', 'France'] ['Entente Florale', 'country', 'Czech Republic']
ASK WHERE { VALUES ( ?r ) { ( resource:France ) ( resource:Czech_Republic ) } . resource:Entente_Florale property:country ?r }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q896509 Q1620361
P17
Q1048835
USER
Is Lichtental situated in Atalaya ?
(Q896509,P17,Q1620361)
action is_in
entity Q1620361
action find
entity Q896509
relation P17
['Q896509', 'P17', 'Q1620361']
ASK WHERE { resource:Q896509 property:P17 resource:Q1620361 }
Lichtental Atalaya
action is_in
entity Atalaya
action find
entity Lichtental
relation country
['Lichtental', 'country', 'Atalaya']
ASK WHERE { resource:Lichtental property:country resource:Atalaya }
[]
political territorial entity
SYSTEM
NO
(Q896509,P17,Q1620361)
action is_in
entity Q1620361
action find
entity Q896509
relation P17
[ANSWER]
['Q896509', 'P17', 'Q1620361']
ASK WHERE { resource:Q896509 property:P17 resource:Q1620361 }
No
action is_in
entity Atalaya
action find
entity Lichtental
relation country
['Lichtental', 'country', 'Atalaya']
ASK WHERE { resource:Lichtental property:country resource:Atalaya }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q23824393 Q142
P17
Q15617994
USER
Is that human settlement situated in France ?
(Q23824393,P17,Q142)
action is_in
entity Q142
action find
entity Q23824393
relation P17
['Q23824393', 'P17', 'Q142']
ASK WHERE { resource:Q23824393 property:P17 resource:Q142 }
vallée de Fécamp France
action is_in
entity France
action find
entity vallée de Fécamp
relation country
['vallée de Fécamp', 'country', 'France']
ASK WHERE { resource:vallée_de_Fécamp property:country resource:France }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q23824393,P17,Q142)
action is_in
entity Q142
action find
entity Q23824393
relation P17
[ANSWER]
['Q23824393', 'P17', 'Q142']
ASK WHERE { resource:Q23824393 property:P17 resource:Q142 }
Yes
action is_in
entity France
action find
entity vallée de Fécamp
relation country
['vallée de Fécamp', 'country', 'France']
ASK WHERE { resource:vallée_de_Fécamp property:country resource:France }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q213
P463
Q874405
USER
What were Czech Republic a member of ?
(Q213,P463,c(Q874405))
action filter_type
action find
entity Q213
relation P463
type Q874405
['Q213', 'P463', {'concept': 'Q874405'}]
SELECT DISTINCT ?v WHERE { resource:Q213 property:P463 ?v . ?v rdf:type ontology:Q874405 }
Czech Republic
action filter_type
action find
entity Czech Republic
relation member of
type social group
['Czech Republic', 'member of', {'concept': 'social group'}]
SELECT DISTINCT ?v WHERE { resource:Czech_Republic property:member_of ?v . ?v rdf:type ontology:social_group }
[]
social group
Q782942 Q8908
SYSTEM
Australia Group, Council of Europe
Q782942 Q8908
(Q213,P463,c(Q874405))
action filter_type
action find
entity Q213
relation P463
type Q874405
Czech Republic were a member of [ANSWERS]
['Q213', 'P463', {'concept': 'Q874405'}]
SELECT DISTINCT ?v WHERE { resource:Q213 property:P463 ?v . ?v rdf:type ontology:Q874405 }
Australia Group Council of Europe
Czech Republic were a member of Australia Group and Council of Europe
Australia Group Council of Europe
action filter_type
action find
entity Czech Republic
relation member of
type social group
['Czech Republic', 'member of', {'concept': 'social group'}]
SELECT DISTINCT ?v WHERE { resource:Czech_Republic property:member_of ?v . ?v rdf:type ontology:social_group }
[]
Simple Question (Ellipsis)
Incomplete|object parent is changed, subject and predicate remain same
Q213
Q43229
USER
And which organization?
(Q213,P463,c(Q43229))
action filter_type
action find
entity Q213
relation P463
type Q43229
['Q213', 'P463', {'concept': 'Q43229'}]
SELECT DISTINCT ?e WHERE { resource:Q213 property:P463 ?e . ?e rdf:type ontology:Q43229 }
Czech Republic
action filter_type
action find
entity Czech Republic
relation member of
type organization
['Czech Republic', 'member of', {'concept': 'organization'}]
SELECT DISTINCT ?e WHERE { resource:Czech_Republic property:member_of ?e . ?e rdf:type ontology:organization }
[]
organization
Q42944 Q151991 Q7825
SYSTEM
European Organization for Nuclear Research, European Southern Observatory, World Trade Organization
Q42944 Q191384 Q899770 Q488981 Q41550 Q656801 Q151991 Q7825 Q827525
(Q213,P463,c(Q43229))
action filter_type
action find
entity Q213
relation P463
type Q43229
[ANSWERS]
['Q213', 'P463', {'concept': 'Q43229'}]
SELECT DISTINCT ?e WHERE { resource:Q213 property:P463 ?e . ?e rdf:type ontology:Q43229 }
European Organization for Nuclear Research International Bank for Reconstruction and Development International Centre for Settlement of Investment Disputes European Bank for Reconstruction and Development Organisation for Economic Co-operation and Development International Finance Corporation European Southern Observatory World Trade Organization International Development Association
European Organization for Nuclear Research European Southern Observatory World Trade Organization
action filter_type
action find
entity Czech Republic
relation member of
type organization
['Czech Republic', 'member of', {'concept': 'organization'}]
SELECT DISTINCT ?e WHERE { resource:Czech_Republic property:member_of ?e . ?e rdf:type ontology:organization }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P138
Q486972 Q2088357 Q56061
USER
Which human settlements are namesakes of around 1 musical ensembles or administrative territories ?
(c(Q2088357)|c(Q56061),P138,c(Q486972))
action approx
action union
action find_reverse_tuple_counts
relation P138
type Q486972
type Q2088357
action find_reverse_tuple_counts
relation P138
type Q486972
type Q56061
value 1
[[{'concept': 'Q2088357'}, {'concept': 'Q56061'}], 'P138', {'concept': 'Q486972'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?y ) AS ?t ) WHERE { VALUES ( ?c ) { ( ontology:Q2088357 ) ( ontology:Q56061 ) } . ?y rdf:type ?c } GROUP BY ?u } . FILTER ( ?t = 1 ) }
action approx
action union
action find_reverse_tuple_counts
relation named after
type human settlement
type musical ensemble
action find_reverse_tuple_counts
relation named after
type human settlement
type administrative territorial entity
value 1
[[{'concept': 'musical ensemble'}, {'concept': 'administrative territorial entity'}], 'named after', {'concept': 'human settlement'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?y ) AS ?t ) WHERE { VALUES ( ?c ) { ( ontology:musical_ensemble ) ( ontology:administrative_territorial_entity ) } . ?y rdf:type ?c } GROUP BY ?u } . FILTER ( ?t = 1 ) }
[]
human settlement musical ensemble administrative territorial entity
Q31487 Q24879 Q60475
SYSTEM
Kraków, Bremen, Harlingen
Q24879 Q60475 Q165613 Q31487 Q2235532 Q7399840
(c(Q2088357)|c(Q56061),P138,c(Q486972))
action approx
action union
action find_reverse_tuple_counts
relation P138
type Q486972
type Q2088357
action find_reverse_tuple_counts
relation P138
type Q486972
type Q56061
value 1
[ANSWERS] are namesakes of around 1 musical ensembles or administrative territories
[[{'concept': 'Q2088357'}, {'concept': 'Q56061'}], 'P138', {'concept': 'Q486972'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?y ) AS ?t ) WHERE { VALUES ( ?c ) { ( ontology:Q2088357 ) ( ontology:Q56061 ) } . ?y rdf:type ?c } GROUP BY ?u } . FILTER ( ?t = 1 ) }
Bremen Harlingen Darien, Connecticut Kraków Earlimart Sai Ying Pun
Kraków, Bremen and Harlingen are namesakes of around 1 musical ensembles or administrative territories
Kraków Bremen Harlingen
action approx
action union
action find_reverse_tuple_counts
relation named after
type human settlement
type musical ensemble
action find_reverse_tuple_counts
relation named after
type human settlement
type administrative territorial entity
value 1
[[{'concept': 'musical ensemble'}, {'concept': 'administrative territorial entity'}], 'named after', {'concept': 'human settlement'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?y ) AS ?t ) WHERE { VALUES ( ?c ) { ( ontology:musical_ensemble ) ( ontology:administrative_territorial_entity ) } . ?y rdf:type ?c } GROUP BY ?u } . FILTER ( ?t = 1 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q1055 Q3920
P937
Q502895
USER
How many people have Hamburg and Lüneburg as their work location ?
(c(Q502895),P937,Q1055) (c(Q502895),P937,Q3920)
action count
action intersection
action filter_type
action find_reverse
entity Q1055
relation P937
type Q502895
action filter_type
action find_reverse
entity Q3920
relation P937
type Q502895
[{'concept': 'Q502895'}, 'P937', 'Q1055'] [{'concept': 'Q502895'}, 'P937', 'Q3920']
SELECT DISTINCT ( COUNT ( ?i ) AS ?q ) WHERE { ?i rdf:type ontology:Q502895 . ?i property:P937 resource:Q1055 . ?i property:P937 resource:Q3920 . ?i rdf:type ontology:Q502895 }
Hamburg Lüneburg
action count
action intersection
action filter_type
action find_reverse
entity Hamburg
relation work location
type common name
action filter_type
action find_reverse
entity Lüneburg
relation work location
type common name
[{'concept': 'common name'}, 'work location', 'Hamburg'] [{'concept': 'common name'}, 'work location', 'Lüneburg']
SELECT DISTINCT ( COUNT ( ?i ) AS ?q ) WHERE { ?i rdf:type ontology:common_name . ?i property:work_location resource:Hamburg . ?i property:work_location resource:Lüneburg . ?i rdf:type ontology:common_name }
[]
common name
SYSTEM
2
Q11800440 Q1080319
(c(Q502895),P937,Q1055) (c(Q502895),P937,Q3920)
action count
action intersection
action filter_type
action find_reverse
entity Q1055
relation P937
type Q502895
action filter_type
action find_reverse
entity Q3920
relation P937
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P937', 'Q1055'] [{'concept': 'Q502895'}, 'P937', 'Q3920']
SELECT DISTINCT ( COUNT ( ?i ) AS ?q ) WHERE { ?i rdf:type ontology:Q502895 . ?i property:P937 resource:Q1055 . ?i property:P937 resource:Q3920 . ?i rdf:type ontology:Q502895 }
Oskar Anweiler Christian Hoburg
2
action count
action intersection
action filter_type
action find_reverse
entity Hamburg
relation work location
type common name
action filter_type
action find_reverse
entity Lüneburg
relation work location
type common name
[{'concept': 'common name'}, 'work location', 'Hamburg'] [{'concept': 'common name'}, 'work location', 'Lüneburg']
SELECT DISTINCT ( COUNT ( ?i ) AS ?q ) WHERE { ?i rdf:type ontology:common_name . ?i property:work_location resource:Hamburg . ?i property:work_location resource:Lüneburg . ?i rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q19360355
P1001
Q486972
USER
Which human settlement applies to jurisdiction of Member of the Hamburg Parliament ?
(Q19360355,P1001,c(Q486972))
action filter_type
action find
entity Q19360355
relation P1001
type Q486972
['Q19360355', 'P1001', {'concept': 'Q486972'}]
SELECT DISTINCT ?l WHERE { resource:Q19360355 property:P1001 ?l . ?l rdf:type ontology:Q486972 }
Member of the Hamburg Parliament
action filter_type
action find
entity Member of the Hamburg Parliament
relation applies to jurisdiction
type human settlement
['Member of the Hamburg Parliament', 'applies to jurisdiction', {'concept': 'human settlement'}]
SELECT DISTINCT ?l WHERE { resource:Member_of_the_Hamburg_Parliament property:applies_to_jurisdiction ?l . ?l rdf:type ontology:human_settlement }
[]
human settlement
Q1055
SYSTEM
Hamburg
Q1055
(Q19360355,P1001,c(Q486972))
action filter_type
action find
entity Q19360355
relation P1001
type Q486972
[ANSWER] applies to jurisdiction of Member of the [ANSWER] Parliament
['Q19360355', 'P1001', {'concept': 'Q486972'}]
SELECT DISTINCT ?l WHERE { resource:Q19360355 property:P1001 ?l . ?l rdf:type ontology:Q486972 }
Hamburg
Hamburg applies to jurisdiction of Member of the Hamburg Parliament
Hamburg
action filter_type
action find
entity Member of the Hamburg Parliament
relation applies to jurisdiction
type human settlement
['Member of the Hamburg Parliament', 'applies to jurisdiction', {'concept': 'human settlement'}]
SELECT DISTINCT ?l WHERE { resource:Member_of_the_Hamburg_Parliament property:applies_to_jurisdiction ?l . ?l rdf:type ontology:human_settlement }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q19360355
P361
Q1752346
USER
What is Member of the Hamburg Parliament a portion of ?
(Q19360355,P361,c(Q1752346))
action filter_type
action find
entity Q19360355
relation P361
type Q1752346
['Q19360355', 'P361', {'concept': 'Q1752346'}]
SELECT DISTINCT ?r WHERE { resource:Q19360355 property:P361 ?r . ?r rdf:type ontology:Q1752346 }
Member of the Hamburg Parliament
action filter_type
action find
entity Member of the Hamburg Parliament
relation part of
type assembly
['Member of the Hamburg Parliament', 'part of', {'concept': 'assembly'}]
SELECT DISTINCT ?r WHERE { resource:Member_of_the_Hamburg_Parliament property:part_of ?r . ?r rdf:type ontology:assembly }
[]
assembly
Q636377
SYSTEM
Hamburg Parliament
Q636377
(Q19360355,P361,c(Q1752346))
action filter_type
action find
entity Q19360355
relation P361
type Q1752346
Member of the [ANSWER] a portion of is the [ANSWER]
['Q19360355', 'P361', {'concept': 'Q1752346'}]
SELECT DISTINCT ?r WHERE { resource:Q19360355 property:P361 ?r . ?r rdf:type ontology:Q1752346 }
Hamburg Parliament
Member of the Hamburg Parliament a portion of is the Hamburg Parliament
Hamburg Parliament
action filter_type
action find
entity Member of the Hamburg Parliament
relation part of
type assembly
['Member of the Hamburg Parliament', 'part of', {'concept': 'assembly'}]
SELECT DISTINCT ?r WHERE { resource:Member_of_the_Hamburg_Parliament property:part_of ?r . ?r rdf:type ontology:assembly }
[]