Simple Question (Direct)
Simple Question
Q1576999
P108
Q19335303
USER
Which German business organization is the workplace of Hans-Georg Maaßen ?
(Q1576999,P108,c(Q19335303))
action filter_type
action find
entity Q1576999
relation P108
type Q19335303
['Q1576999', 'P108', {'concept': 'Q19335303'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q19335303 . resource:Q1576999 property:P108 ?x }
Hans-Georg Maaßen
action filter_type
action find
entity Hans-Georg Maaßen
relation employer
type type of business entity in Germany
['Hans-Georg Maaßen', 'employer', {'concept': 'type of business entity in Germany'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:type_of_business_entity_in_Germany . resource:Hans-Georg_Maaßen property:employer ?x }
[]
type of business entity in Germany
Q153006
SYSTEM
Free University of Berlin
Q153006
(Q1576999,P108,c(Q19335303))
action filter_type
action find
entity Q1576999
relation P108
type Q19335303
[ANSWER] is the workplace of Hans-Georg Maaßen
['Q1576999', 'P108', {'concept': 'Q19335303'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q19335303 . resource:Q1576999 property:P108 ?x }
Free University of Berlin
Free University of Berlin is the workplace of Hans-Georg Maaßen
Free University of Berlin
action filter_type
action find
entity Hans-Georg Maaßen
relation employer
type type of business entity in Germany
['Hans-Georg Maaßen', 'employer', {'concept': 'type of business entity in Germany'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:type_of_business_entity_in_Germany . resource:Hans-Georg_Maaßen property:employer ?x }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1576999
P1037
Q327333
USER
Which government agency is managed by Hans-Georg Maaßen ?
(c(Q327333),P1037,Q1576999)
action filter_type
action find_reverse
entity Q1576999
relation P1037
type Q327333
[{'concept': 'Q327333'}, 'P1037', 'Q1576999']
SELECT DISTINCT ?p WHERE { ?p property:P1037 resource:Q1576999 . ?p rdf:type ontology:Q327333 }
Hans-Georg Maaßen
action filter_type
action find_reverse
entity Hans-Georg Maaßen
relation manager/director
type government agency
[{'concept': 'government agency'}, 'manager/director', 'Hans-Georg Maaßen']
SELECT DISTINCT ?p WHERE { ?p property:manager/director resource:Hans-Georg_Maaßen . ?p rdf:type ontology:government_agency }
[]
government agency
Q310522
SYSTEM
Federal Office for the Protection of the Constitution
Q310522
(c(Q327333),P1037,Q1576999)
action filter_type
action find_reverse
entity Q1576999
relation P1037
type Q327333
[ANSWER] is managed by Hans-Georg Maaßen
[{'concept': 'Q327333'}, 'P1037', 'Q1576999']
SELECT DISTINCT ?p WHERE { ?p property:P1037 resource:Q1576999 . ?p rdf:type ontology:Q327333 }
Federal Office for the Protection of the Constitution
Federal Office for the Protection of the Constitution is managed by Hans-Georg Maaßen
Federal Office for the Protection of the Constitution
action filter_type
action find_reverse
entity Hans-Georg Maaßen
relation manager/director
type government agency
[{'concept': 'government agency'}, 'manager/director', 'Hans-Georg Maaßen']
SELECT DISTINCT ?p WHERE { ?p property:manager/director resource:Hans-Georg_Maaßen . ?p rdf:type ontology:government_agency }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q310522
P159
Q56061
USER
Which administrative territory is the HQ of that government agency ?
(Q310522,P159,c(Q56061))
action filter_type
action find
entity Q310522
relation P159
type Q56061
['Q310522', 'P159', {'concept': 'Q56061'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q56061 . resource:Q310522 property:P159 ?m }
Federal Office for the Protection of the Constitution
action filter_type
action find
entity Federal Office for the Protection of the Constitution
relation headquarters location
type administrative territorial entity
['Federal Office for the Protection of the Constitution', 'headquarters location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:administrative_territorial_entity . resource:Federal_Office_for_the_Protection_of_the_Constitution property:headquarters_location ?m }
[]
administrative territorial entity
Q365
SYSTEM
Cologne
Q365
(Q310522,P159,c(Q56061))
action filter_type
action find
entity Q310522
relation P159
type Q56061
[ANSWER] is the HQ of that government agency
['Q310522', 'P159', {'concept': 'Q56061'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q56061 . resource:Q310522 property:P159 ?m }
Cologne
Cologne is the HQ of that government agency
Cologne
action filter_type
action find
entity Federal Office for the Protection of the Constitution
relation headquarters location
type administrative territorial entity
['Federal Office for the Protection of the Constitution', 'headquarters location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:administrative_territorial_entity . resource:Federal_Office_for_the_Protection_of_the_Constitution property:headquarters_location ?m }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q484678 Q310522
P190 P159
Q56061
USER
Which administrative territories are the head offices of Federal Office for the Protection of the Constitution or are partner towns of Berkeley ?
OR((Q310522,P159,c(Q56061)), (Q484678,P190,c(Q56061)))
action filter_type
action union
action find
entity Q310522
relation P159
action find
entity Q484678
relation P190
type Q56061
{'OR': [['Q310522', 'P159', {'concept': 'Q56061'}], ['Q484678', 'P190', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?d WHERE { { { resource:Q310522 property:P159 ?d } UNION { resource:Q484678 property:P190 ?d } } . ?d rdf:type ontology:Q56061 }
Berkeley Federal Office for the Protection of the Constitution
action filter_type
action union
action find
entity Federal Office for the Protection of the Constitution
relation headquarters location
action find
entity Berkeley
relation sister city
type administrative territorial entity
{'OR': [['Federal Office for the Protection of the Constitution', 'headquarters location', {'concept': 'administrative territorial entity'}], ['Berkeley', 'sister city', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?d WHERE { { { resource:Federal_Office_for_the_Protection_of_the_Constitution property:headquarters_location ?d } UNION { resource:Berkeley property:sister_city ?d } } . ?d rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q365 Q3150 Q3642 Q102334 Q6816
SYSTEM
Cologne, Jena, Asmara, Dmitrov, Ulan-Ude
Q365 Q3150 Q3642 Q102334 Q6816
OR((Q310522,P159,c(Q56061)), (Q484678,P190,c(Q56061)))
action filter_type
action union
action find
entity Q310522
relation P159
action find
entity Q484678
relation P190
type Q56061
[ANSWERS] are the head offices of Federal Office for the Protection of the Constitution or are partner towns of Berkeley
{'OR': [['Q310522', 'P159', {'concept': 'Q56061'}], ['Q484678', 'P190', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?d WHERE { { { resource:Q310522 property:P159 ?d } UNION { resource:Q484678 property:P190 ?d } } . ?d rdf:type ontology:Q56061 }
Cologne Jena Asmara Dmitrov Ulan-Ude
Cologne, Jena, Asmara, Dmitrov and Ulan-Ude are the head offices of Federal Office for the Protection of the Constitution or are partner towns of Berkeley
Cologne Jena Asmara Dmitrov Ulan-Ude
action filter_type
action union
action find
entity Federal Office for the Protection of the Constitution
relation headquarters location
action find
entity Berkeley
relation sister city
type administrative territorial entity
{'OR': [['Federal Office for the Protection of the Constitution', 'headquarters location', {'concept': 'administrative territorial entity'}], ['Berkeley', 'sister city', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?d WHERE { { { resource:Federal_Office_for_the_Protection_of_the_Constitution property:headquarters_location ?d } UNION { resource:Berkeley property:sister_city ?d } } . ?d rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q484678 Q758635
P190
Q486972
USER
How many human settlements are sister towns of Berkeley or Auckland Council ?
(Q484678,P190,c(Q486972)) (Q758635,P190,c(Q486972))
action count
action union
action filter_type
action find
entity Q484678
relation P190
type Q486972
action filter_type
action find
entity Q758635
relation P190
type Q486972
['Q484678', 'P190', {'concept': 'Q486972'}] ['Q758635', 'P190', {'concept': 'Q486972'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?o ) WHERE { ?i property:P190 ?r . VALUES ( ?i ) { ( resource:Q758635 ) ( resource:Q484678 ) } }
Berkeley Auckland Council
action count
action union
action filter_type
action find
entity Berkeley
relation sister city
type human settlement
action filter_type
action find
entity Auckland Council
relation sister city
type human settlement
['Berkeley', 'sister city', {'concept': 'human settlement'}] ['Auckland Council', 'sister city', {'concept': 'human settlement'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?o ) WHERE { ?i property:sister_city ?r . VALUES ( ?i ) { ( resource:Auckland_Council ) ( resource:Berkeley ) } }
[]
human settlement
SYSTEM
2
Q233495 Q1055
(Q484678,P190,c(Q486972)) (Q758635,P190,c(Q486972))
action count
action union
action filter_type
action find
entity Q484678
relation P190
type Q486972
action filter_type
action find
entity Q758635
relation P190
type Q486972
[ANSWER]
['Q484678', 'P190', {'concept': 'Q486972'}] ['Q758635', 'P190', {'concept': 'Q486972'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?o ) WHERE { ?i property:P190 ?r . VALUES ( ?i ) { ( resource:Q758635 ) ( resource:Q484678 ) } }
Shinagawa-ku Hamburg
2
action count
action union
action filter_type
action find
entity Berkeley
relation sister city
type human settlement
action filter_type
action find
entity Auckland Council
relation sister city
type human settlement
['Berkeley', 'sister city', {'concept': 'human settlement'}] ['Auckland Council', 'sister city', {'concept': 'human settlement'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?o ) WHERE { ?i property:sister_city ?r . VALUES ( ?i ) { ( resource:Auckland_Council ) ( resource:Berkeley ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q365
P138
Q740752
USER
Which transport company has Cologne as its namesake ?
(c(Q740752),P138,Q365)
action filter_type
action find_reverse
entity Q365
relation P138
type Q740752
[{'concept': 'Q740752'}, 'P138', 'Q365']
SELECT DISTINCT ?f WHERE { ?f property:P138 resource:Q365 . ?f rdf:type ontology:Q740752 }
Cologne
action filter_type
action find_reverse
entity Cologne
relation named after
type transport company
[{'concept': 'transport company'}, 'named after', 'Cologne']
SELECT DISTINCT ?f WHERE { ?f property:named_after resource:Cologne . ?f rdf:type ontology:transport_company }
[]
transport company
Q822867
SYSTEM
Hamburg-Köln-Express
Q822867
(c(Q740752),P138,Q365)
action filter_type
action find_reverse
entity Q365
relation P138
type Q740752
[ANSWER] has Cologne as its namesake
[{'concept': 'Q740752'}, 'P138', 'Q365']
SELECT DISTINCT ?f WHERE { ?f property:P138 resource:Q365 . ?f rdf:type ontology:Q740752 }
Hamburg-Köln-Express
Hamburg-Köln-Express has Cologne as its namesake
Hamburg-Köln-Express
action filter_type
action find_reverse
entity Cologne
relation named after
type transport company
[{'concept': 'transport company'}, 'named after', 'Cologne']
SELECT DISTINCT ?f WHERE { ?f property:named_after resource:Cologne . ?f rdf:type ontology:transport_company }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q822867
P137
Q55488
USER
Which railway stations can be described as facility operator of that transport company ?
(c(Q55488),P137,Q822867)
action filter_type
action find_reverse
entity Q822867
relation P137
type Q55488
[{'concept': 'Q55488'}, 'P137', 'Q822867']
SELECT DISTINCT ?w WHERE { ?w property:P137 resource:Q822867 . ?w rdf:type ontology:Q55488 }
Hamburg-Köln-Express
action filter_type
action find_reverse
entity Hamburg-Köln-Express
relation operator
type railway station
[{'concept': 'railway station'}, 'operator', 'Hamburg-Köln-Express']
SELECT DISTINCT ?w WHERE { ?w property:operator resource:Hamburg-Köln-Express . ?w rdf:type ontology:railway_station }
[]
railway station
Q464355 Q6456
SYSTEM
Osnabrück Central Station, Hamburg Central Station
Q464355 Q6456
(c(Q55488),P137,Q822867)
action filter_type
action find_reverse
entity Q822867
relation P137
type Q55488
[ANSWERS] can be described as facility operator of that transport company
[{'concept': 'Q55488'}, 'P137', 'Q822867']
SELECT DISTINCT ?w WHERE { ?w property:P137 resource:Q822867 . ?w rdf:type ontology:Q55488 }
Osnabrück Central Station Hamburg Central Station
Osnabrück Central Station and Hamburg Central Station can be described as facility operator of that transport company
Osnabrück Central Station Hamburg Central Station
action filter_type
action find_reverse
entity Hamburg-Köln-Express
relation operator
type railway station
[{'concept': 'railway station'}, 'operator', 'Hamburg-Köln-Express']
SELECT DISTINCT ?w WHERE { ?w property:operator resource:Hamburg-Köln-Express . ?w rdf:type ontology:railway_station }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q464355 Q6456
P81
Q83620
USER
Which thoroughfares do Osnabrück Central Station and Hamburg Central Station have a connection to ?
(Q464355,P81,c(Q83620)) (Q6456,P81,c(Q83620))
action union
action filter_type
action find
entity Q464355
relation P81
type Q83620
action filter_type
action find
entity Q6456
relation P81
type Q83620
['Q464355', 'P81', {'concept': 'Q83620'}] ['Q6456', 'P81', {'concept': 'Q83620'}]
SELECT DISTINCT ?z WHERE { ?j property:P81 ?z . VALUES ( ?j ) { ( resource:Q6456 ) ( resource:Q464355 ) } }
Osnabrück Central Station Hamburg Central Station
action union
action filter_type
action find
entity Osnabrück Central Station
relation connecting line
type thoroughfare
action filter_type
action find
entity Hamburg Central Station
relation connecting line
type thoroughfare
['Osnabrück Central Station', 'connecting line', {'concept': 'thoroughfare'}] ['Hamburg Central Station', 'connecting line', {'concept': 'thoroughfare'}]
SELECT DISTINCT ?z WHERE { ?j property:connecting_line ?z . VALUES ( ?j ) { ( resource:Hamburg_Central_Station ) ( resource:Osnabrück_Central_Station ) } }
[]
thoroughfare
Q540030 Q19390036 Q19368873
SYSTEM
Berlin–Hamburg Railway, S2, S31
Q802718 Q802929 Q802946 Q317480 Q540030 Q19390036 Q317480 Q19368804 Q19368873 Q19368759 Q19368685 Q882140 Q19377130 Q19368865 Q477258
(Q464355,P81,c(Q83620)) (Q6456,P81,c(Q83620))
action union
action filter_type
action find
entity Q464355
relation P81
type Q83620
action filter_type
action find
entity Q6456
relation P81
type Q83620
Osnabrück Central Station and Hamburg Central Station have a connection to the [ANSWERS]
['Q464355', 'P81', {'concept': 'Q83620'}] ['Q6456', 'P81', {'concept': 'Q83620'}]
SELECT DISTINCT ?z WHERE { ?j property:P81 ?z . VALUES ( ?j ) { ( resource:Q6456 ) ( resource:Q464355 ) } }
Löhne–Rheine railway Oldenburg–Osnabrück railway Osnabrück–Bielefeld railway Wanne-Eickel–Hamburg railway Berlin–Hamburg Railway S2 Wanne-Eickel–Hamburg railway A1 S31 S21 S3 Hamburg-Altona link line S1 S11 Lübeck–Hamburg railway
Osnabrück Central Station and Hamburg Central Station have a connection to the Berlin–Hamburg Railway, S2 and S31
Berlin–Hamburg Railway S2 S31
action union
action filter_type
action find
entity Osnabrück Central Station
relation connecting line
type thoroughfare
action filter_type
action find
entity Hamburg Central Station
relation connecting line
type thoroughfare
['Osnabrück Central Station', 'connecting line', {'concept': 'thoroughfare'}] ['Hamburg Central Station', 'connecting line', {'concept': 'thoroughfare'}]
SELECT DISTINCT ?z WHERE { ?j property:connecting_line ?z . VALUES ( ?j ) { ( resource:Hamburg_Central_Station ) ( resource:Osnabrück_Central_Station ) } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q464355
P1192
Q3959904
USER
Which multiple unit is a connecting service for that railway station ?
(Q464355,P1192,c(Q3959904))
action filter_type
action find
entity Q464355
relation P1192
type Q3959904
['Q464355', 'P1192', {'concept': 'Q3959904'}]
SELECT DISTINCT ?e WHERE { resource:Q464355 property:P1192 ?e . ?e rdf:type ontology:Q3959904 }
Osnabrück Central Station
action filter_type
action find
entity Osnabrück Central Station
relation connecting service
type multiple unit
['Osnabrück Central Station', 'connecting service', {'concept': 'multiple unit'}]
SELECT DISTINCT ?e WHERE { resource:Osnabrück_Central_Station property:connecting_service ?e . ?e rdf:type ontology:multiple_unit }
[]
multiple unit
Clarification for simple ques.
Q464355
SYSTEM
Did you mean Osnabrück Central Station ?
Q540030 Q19390036 Q19368873
(Q540030,P1192,c(Q3959904)) (Q19390036,P1192,c(Q3959904)) (Q19368873,P1192,c(Q3959904))
[ANSWER]
['Q540030', 'P1192', {'concept': 'Q3959904'}] ['Q19390036', 'P1192', {'concept': 'Q3959904'}] ['Q19368873', 'P1192', {'concept': 'Q3959904'}]
SELECT DISTINCT ?e WHERE { resource:Q464355 property:P1192 ?e . ?e rdf:type ontology:Q3959904 }
Berlin–Hamburg Railway S2 S31
Did you mean Osnabrück Central Station ?
Osnabrück Central Station
['Berlin–Hamburg Railway', 'connecting service', {'concept': 'multiple unit'}] ['S2', 'connecting service', {'concept': 'multiple unit'}] ['S31', 'connecting service', {'concept': 'multiple unit'}]
SELECT DISTINCT ?e WHERE { resource:Osnabrück_Central_Station property:connecting_service ?e . ?e rdf:type ontology:multiple_unit }
[]
Simple Question (Coreferenced)
USER
Yes
(Q464355,P1192,c(Q3959904))
['Q464355', 'P1192', {'concept': 'Q3959904'}]
['Osnabrück Central Station', 'connecting service', {'concept': 'multiple unit'}]
[]
Q129172
SYSTEM
InterCityExpress
Q129172
(Q464355,P1192,c(Q3959904))
action filter_type
action find
entity Q464355
relation P1192
type Q3959904
[ANSWER] is a connecting service for that railway station
['Q464355', 'P1192', {'concept': 'Q3959904'}]
SELECT DISTINCT ?e WHERE { resource:Q464355 property:P1192 ?e . ?e rdf:type ontology:Q3959904 }
InterCityExpress
InterCityExpress is a connecting service for that railway station
InterCityExpress
action filter_type
action find
entity Osnabrück Central Station
relation connecting service
type multiple unit
['Osnabrück Central Station', 'connecting service', {'concept': 'multiple unit'}]
SELECT DISTINCT ?e WHERE { resource:Osnabrück_Central_Station property:connecting_service ?e . ?e rdf:type ontology:multiple_unit }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Indirect
P17
Q1048835
USER
How many political territories are that multiple unit situated in ?
(Q129172,P17,c(Q1048835))
action count
action filter_type
action find
entity Q129172
relation P17
type Q1048835
['Q129172', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?l ) WHERE { resource:Q129172 property:P17 ?f . ?f rdf:type ontology:Q1048835 }
action count
action filter_type
action find
entity InterCityExpress
relation country
type political territorial entity
['InterCityExpress', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?l ) WHERE { resource:InterCityExpress property:country ?f . ?f rdf:type ontology:political_territorial_entity }
[]
political territorial entity
SYSTEM
1
Q183
(Q129172,P17,c(Q1048835))
action count
action filter_type
action find
entity Q129172
relation P17
type Q1048835
[ANSWER]
['Q129172', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?l ) WHERE { resource:Q129172 property:P17 ?f . ?f rdf:type ontology:Q1048835 }
Germany
1
action count
action filter_type
action find
entity InterCityExpress
relation country
type political territorial entity
['InterCityExpress', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?l ) WHERE { resource:InterCityExpress property:country ?f . ?f rdf:type ontology:political_territorial_entity }
[]