Simple Question (Direct)
Simple Question
Q3084183
P21
Q290
USER
Which sex does François Carpentier have ?
(Q3084183,P21,c(Q290))
action filter_type
action find
entity Q3084183
relation P21
type Q290
['Q3084183', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?a WHERE { resource:Q3084183 property:P21 ?a . ?a rdf:type ontology:Q290 }
François Carpentier
action filter_type
action find
entity François Carpentier
relation gender
type sex
['François Carpentier', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?a WHERE { resource:François_Carpentier property:gender ?a . ?a rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q3084183,P21,c(Q290))
action filter_type
action find
entity Q3084183
relation P21
type Q290
François Carpentier has a [ANSWER]
['Q3084183', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?a WHERE { resource:Q3084183 property:P21 ?a . ?a rdf:type ontology:Q290 }
male
François Carpentier has a male
male
action filter_type
action find
entity François Carpentier
relation gender
type sex
['François Carpentier', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?a WHERE { resource:François_Carpentier property:gender ?a . ?a rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3084183
P1038
Q502895
USER
Who is a relative of that one ?
(Q6581097,P1038,c(Q502895))
action filter_type
action find
entity Q3084183
relation P1038
type Q502895
['Q6581097', 'P1038', {'concept': 'Q502895'}]
SELECT DISTINCT ?w WHERE { resource:Q3084183 property:P1038 ?w . ?w rdf:type ontology:Q502895 }
François Carpentier
action filter_type
action find
entity François Carpentier
relation relative
type common name
['male', 'relative', {'concept': 'common name'}]
SELECT DISTINCT ?w WHERE { resource:François_Carpentier property:relative ?w . ?w rdf:type ontology:common_name }
[]
common name
Q438213
SYSTEM
Jules Carpentier
Q438213
(Q6581097,P1038,c(Q502895))
action filter_type
action find
entity Q3084183
relation P1038
type Q502895
A relative of that one is the [ANSWER]
['Q6581097', 'P1038', {'concept': 'Q502895'}]
SELECT DISTINCT ?w WHERE { resource:Q3084183 property:P1038 ?w . ?w rdf:type ontology:Q502895 }
Jules Carpentier
A relative of that one is the Jules Carpentier
Jules Carpentier
action filter_type
action find
entity François Carpentier
relation relative
type common name
['male', 'relative', {'concept': 'common name'}]
SELECT DISTINCT ?w WHERE { resource:François_Carpentier property:relative ?w . ?w rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q438213 Q1198251 Q142
P27
Q15617994
USER
Is Jules Carpentier a native of Gangcheng District and France ?
(Q438213,P27,Q1198251) (Q438213,P27,Q142)
action is_in
entity Q438213
action intersection
action find_reverse
entity Q1198251
relation P27
action find_reverse
entity Q142
relation P27
['Q438213', 'P27', 'Q1198251'] ['Q438213', 'P27', 'Q142']
ASK WHERE { resource:Q438213 property:P27 resource:Q1198251 . resource:Q438213 property:P27 resource:Q142 }
Jules Carpentier Gangcheng District France
action is_in
entity Jules Carpentier
action intersection
action find_reverse
entity Gangcheng District
relation country of citizenship
action find_reverse
entity France
relation country of citizenship
['Jules Carpentier', 'country of citizenship', 'Gangcheng District'] ['Jules Carpentier', 'country of citizenship', 'France']
ASK WHERE { resource:Jules_Carpentier property:country_of_citizenship resource:Gangcheng_District . resource:Jules_Carpentier property:country_of_citizenship resource:France }
[]
designation for an administrative territorial entity
SYSTEM
NO and YES respectively
(Q438213,P27,Q1198251) (Q438213,P27,Q142)
action is_in
entity Q438213
action intersection
action find_reverse
entity Q1198251
relation P27
action find_reverse
entity Q142
relation P27
[ANSWER]
['Q438213', 'P27', 'Q1198251'] ['Q438213', 'P27', 'Q142']
ASK WHERE { resource:Q438213 property:P27 resource:Q1198251 . resource:Q438213 property:P27 resource:Q142 }
NO and YES respectively
action is_in
entity Jules Carpentier
action intersection
action find_reverse
entity Gangcheng District
relation country of citizenship
action find_reverse
entity France
relation country of citizenship
['Jules Carpentier', 'country of citizenship', 'Gangcheng District'] ['Jules Carpentier', 'country of citizenship', 'France']
ASK WHERE { resource:Jules_Carpentier property:country_of_citizenship resource:Gangcheng_District . resource:Jules_Carpentier property:country_of_citizenship resource:France }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q438213
P108
Q740752
USER
Which transport company employs that person ?
action filter_type
action find
entity Q438213
relation P108
type Q740752
SELECT DISTINCT ?g WHERE { resource:Q438213 property:P108 ?g . ?g rdf:type ontology:Q740752 }
Jules Carpentier
action filter_type
action find
entity Jules Carpentier
relation employer
type transport company
SELECT DISTINCT ?g WHERE { resource:Jules_Carpentier property:employer ?g . ?g rdf:type ontology:transport_company }
[]
transport company
Q1121154
SYSTEM
Compagnie des chemins de fer de Paris à Lyon et à la Méditerranée
Q1121154
action filter_type
action find
entity Q438213
relation P108
type Q740752
[ANSWER] employs that person
SELECT DISTINCT ?g WHERE { resource:Q438213 property:P108 ?g . ?g rdf:type ontology:Q740752 }
Compagnie des chemins de fer de Paris à Lyon et à la Méditerranée
Compagnie des chemins de fer de Paris à Lyon et à la Méditerranée employs that person
Compagnie des chemins de fer de Paris à Lyon et à la Méditerranée
action filter_type
action find
entity Jules Carpentier
relation employer
type transport company
SELECT DISTINCT ?g WHERE { resource:Jules_Carpentier property:employer ?g . ?g rdf:type ontology:transport_company }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q742422
P749
Q740752 Q1269299 Q740752
USER
Which transport companies are owned by greater number of transport companies or business organizations than PKP Cargo ?
(c(Q740752),P749,c(Q740752)|c(Q1269299))
action greater
action union
action find_tuple_counts
relation P749
type Q740752
type Q740752
action find_tuple_counts
relation P749
type Q740752
type Q1269299
action count
action filter_multi_types
action find
entity Q742422
relation P749
type Q740752
type Q1269299
[{'concept': 'Q740752'}, 'P749', [{'concept': 'Q740752'}, {'concept': 'Q1269299'}]]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?s ) ?i WHERE { VALUES ( ?k ) { ( ontology:Q1269299 ) ( ontology:Q740752 ) } . ?z rdf:type ?k } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?u ) WHERE { { { ?y rdf:type ontology:Q1269299 } UNION { ?y rdf:type ontology:Q740752 } } . resource:Q742422 property:P749 ?y } } . FILTER ( ?s > ?u ) }
PKP Cargo
action greater
action union
action find_tuple_counts
relation parent organization
type transport company
type transport company
action find_tuple_counts
relation parent organization
type transport company
type type of business entity
action count
action filter_multi_types
action find
entity PKP Cargo
relation parent organization
type transport company
type type of business entity
[{'concept': 'transport company'}, 'parent organization', [{'concept': 'transport company'}, {'concept': 'type of business entity'}]]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?s ) ?i WHERE { VALUES ( ?k ) { ( ontology:type_of_business_entity ) ( ontology:transport_company ) } . ?z rdf:type ?k } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?u ) WHERE { { { ?y rdf:type ontology:type_of_business_entity } UNION { ?y rdf:type ontology:transport_company } } . resource:PKP_Cargo property:parent_organization ?y } } . FILTER ( ?s > ?u ) }
[]
transport company type of business entity transport company
Q18853 Q1144530 Q3743743
SYSTEM
DB Regio, Southwestern Railways, Nose Electric Railway
Q2350232 Q18641001 Q3743743 Q31341 Q7105599 Q5452894 Q6670984 Q2192478 Q15712210 Q2040421 Q1144530 Q18640999 Q20986912 Q452140 Q4378133 Q20855955 Q3240991 Q250760 Q18853 Q5362418
(c(Q740752),P749,c(Q740752)|c(Q1269299))
action greater
action union
action find_tuple_counts
relation P749
type Q740752
type Q740752
action find_tuple_counts
relation P749
type Q740752
type Q1269299
action count
action filter_multi_types
action find
entity Q742422
relation P749
type Q740752
type Q1269299
[ANSWERS] are owned by greater number of transport companies or business organizations than PKP Cargo
[{'concept': 'Q740752'}, 'P749', [{'concept': 'Q740752'}, {'concept': 'Q1269299'}]]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?s ) ?i WHERE { VALUES ( ?k ) { ( ontology:Q1269299 ) ( ontology:Q740752 ) } . ?z rdf:type ?k } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?u ) WHERE { { { ?y rdf:type ontology:Q1269299 } UNION { ?y rdf:type ontology:Q740752 } } . resource:Q742422 property:P749 ?y } } . FILTER ( ?s > ?u ) }
Stinnes AG Jyväskylän Liikenne Nose Electric Railway DB Schenker Logistics Semboku Rapid Railway First Cymru London United Busways Crossrail Benelux IC Bus Maxx Southwestern Railways Koskilinjat DB Busverkehr Hessen DB Fernverkehr Near-Dnipro Railways CrossRail Italia Lima Airport Partners Enoshima Electric Railway DB Regio Izukyū Corporation
DB Regio, Southwestern Railways and Nose Electric Railway are owned by greater number of transport companies or business organizations than PKP Cargo
DB Regio Southwestern Railways Nose Electric Railway
action greater
action union
action find_tuple_counts
relation parent organization
type transport company
type transport company
action find_tuple_counts
relation parent organization
type transport company
type type of business entity
action count
action filter_multi_types
action find
entity PKP Cargo
relation parent organization
type transport company
type type of business entity
[{'concept': 'transport company'}, 'parent organization', [{'concept': 'transport company'}, {'concept': 'type of business entity'}]]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?s ) ?i WHERE { VALUES ( ?k ) { ( ontology:type_of_business_entity ) ( ontology:transport_company ) } . ?z rdf:type ?k } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?u ) WHERE { { { ?y rdf:type ontology:type_of_business_entity } UNION { ?y rdf:type ontology:transport_company } } . resource:PKP_Cargo property:parent_organization ?y } } . FILTER ( ?s > ?u ) }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q19481118 Q742422
P276 P159
Q56061
USER
Which administrative territories are the headquarters of PKP Cargo located or are the locations of Rosariopark ?
OR((Q742422,P159,c(Q56061)), (Q19481118,P276,c(Q56061)))
action filter_type
action union
action find
entity Q742422
relation P159
action find
entity Q19481118
relation P276
type Q56061
{'OR': [['Q742422', 'P159', {'concept': 'Q56061'}], ['Q19481118', 'P276', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Q742422 property:P159 ?f } UNION { resource:Q19481118 property:P276 ?f } } . ?f rdf:type ontology:Q56061 }
Rosariopark PKP Cargo
action filter_type
action union
action find
entity PKP Cargo
relation headquarters location
action find
entity Rosariopark
relation location
type administrative territorial entity
{'OR': [['PKP Cargo', 'headquarters location', {'concept': 'administrative territorial entity'}], ['Rosariopark', 'location', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?f WHERE { { { resource:PKP_Cargo property:headquarters_location ?f } UNION { resource:Rosariopark property:location ?f } } . ?f rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q270 Q4507706
SYSTEM
Warsaw, Dongen
Q270 Q4507706
OR((Q742422,P159,c(Q56061)), (Q19481118,P276,c(Q56061)))
action filter_type
action union
action find
entity Q742422
relation P159
action find
entity Q19481118
relation P276
type Q56061
[ANSWERS] are the headquarters of PKP Cargo located or are the locations of Rosariopark
{'OR': [['Q742422', 'P159', {'concept': 'Q56061'}], ['Q19481118', 'P276', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Q742422 property:P159 ?f } UNION { resource:Q19481118 property:P276 ?f } } . ?f rdf:type ontology:Q56061 }
Warsaw Dongen
Warsaw and Dongen are the headquarters of PKP Cargo located or are the locations of Rosariopark
Warsaw Dongen
action filter_type
action union
action find
entity PKP Cargo
relation headquarters location
action find
entity Rosariopark
relation location
type administrative territorial entity
{'OR': [['PKP Cargo', 'headquarters location', {'concept': 'administrative territorial entity'}], ['Rosariopark', 'location', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?f WHERE { { { resource:PKP_Cargo property:headquarters_location ?f } UNION { resource:Rosariopark property:location ?f } } . ?f rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q18853
P1454
Q1269299
USER
Which business organization represents the legal form of DB Regio ?
(Q18853,P1454,c(Q1269299))
action filter_type
action find
entity Q18853
relation P1454
type Q1269299
['Q18853', 'P1454', {'concept': 'Q1269299'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q1269299 . resource:Q18853 property:P1454 ?s }
DB Regio
action filter_type
action find
entity DB Regio
relation legal form
type type of business entity
['DB Regio', 'legal form', {'concept': 'type of business entity'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:type_of_business_entity . resource:DB_Regio property:legal_form ?s }
[]
type of business entity
Q422062
SYSTEM
Aktiengesellschaft
Q422062
(Q18853,P1454,c(Q1269299))
action filter_type
action find
entity Q18853
relation P1454
type Q1269299
[ANSWER] represents the legal form of DB Regio
['Q18853', 'P1454', {'concept': 'Q1269299'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q1269299 . resource:Q18853 property:P1454 ?s }
Aktiengesellschaft
Aktiengesellschaft represents the legal form of DB Regio
Aktiengesellschaft
action filter_type
action find
entity DB Regio
relation legal form
type type of business entity
['DB Regio', 'legal form', {'concept': 'type of business entity'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:type_of_business_entity . resource:DB_Regio property:legal_form ?s }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q270
P30
Q2221906
USER
Where is Warsaw situated ?
(Q270,P30,c(Q2221906))
action filter_type
action find
entity Q270
relation P30
type Q2221906
['Q270', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?u WHERE { resource:Q270 property:P30 ?u . ?u rdf:type ontology:Q2221906 }
Warsaw
action filter_type
action find
entity Warsaw
relation continent
type geographic location
['Warsaw', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?u WHERE { resource:Warsaw property:continent ?u . ?u rdf:type ontology:geographic_location }
[]
geographic location
Q46
SYSTEM
Europe
Q46
(Q270,P30,c(Q2221906))
action filter_type
action find
entity Q270
relation P30
type Q2221906
Warsaw is situated in [ANSWER]
['Q270', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?u WHERE { resource:Q270 property:P30 ?u . ?u rdf:type ontology:Q2221906 }
Europe
Warsaw is situated in Europe
Europe
action filter_type
action find
entity Warsaw
relation continent
type geographic location
['Warsaw', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?u WHERE { resource:Warsaw property:continent ?u . ?u rdf:type ontology:geographic_location }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q46
P183
Q16521
USER
Which taxon is endemic to that geographic location ?
(c(Q16521),P183,Q46)
action filter_type
action find_reverse
entity Q46
relation P183
type Q16521
[{'concept': 'Q16521'}, 'P183', 'Q46']
SELECT DISTINCT ?q WHERE { ?q property:P183 resource:Q46 . ?q rdf:type ontology:Q16521 }
Europe
action filter_type
action find_reverse
entity Europe
relation endemic to
type taxon
[{'concept': 'taxon'}, 'endemic to', 'Europe']
SELECT DISTINCT ?q WHERE { ?q property:endemic_to resource:Europe . ?q rdf:type ontology:taxon }
[]
taxon
Q4248045
SYSTEM
Coleophora peribenanderi
Q4248045
(c(Q16521),P183,Q46)
action filter_type
action find_reverse
entity Q46
relation P183
type Q16521
[ANSWER] is endemic to that geographic location
[{'concept': 'Q16521'}, 'P183', 'Q46']
SELECT DISTINCT ?q WHERE { ?q property:P183 resource:Q46 . ?q rdf:type ontology:Q16521 }
Coleophora peribenanderi
Coleophora peribenanderi is endemic to that geographic location
Coleophora peribenanderi
action filter_type
action find_reverse
entity Europe
relation endemic to
type taxon
[{'concept': 'taxon'}, 'endemic to', 'Europe']
SELECT DISTINCT ?q WHERE { ?q property:endemic_to resource:Europe . ?q rdf:type ontology:taxon }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q46
P610
Q14524493
USER
Which is the highest peak of Europe ?
(Q46,P610,c(Q14524493))
action filter_type
action find
entity Q46
relation P610
type Q14524493
['Q46', 'P610', {'concept': 'Q14524493'}]
SELECT DISTINCT ?c WHERE { resource:Q46 property:P610 ?c . ?c rdf:type ontology:Q14524493 }
Europe
action filter_type
action find
entity Europe
relation highest point
type terrain
['Europe', 'highest point', {'concept': 'terrain'}]
SELECT DISTINCT ?c WHERE { resource:Europe property:highest_point ?c . ?c rdf:type ontology:terrain }
[]
terrain
Q43105
SYSTEM
Mount Elbrus
Q43105
(Q46,P610,c(Q14524493))
action filter_type
action find
entity Q46
relation P610
type Q14524493
The highest peak of Europe is the [ANSWER]
['Q46', 'P610', {'concept': 'Q14524493'}]
SELECT DISTINCT ?c WHERE { resource:Q46 property:P610 ?c . ?c rdf:type ontology:Q14524493 }
Mount Elbrus
The highest peak of Europe is the Mount Elbrus
Mount Elbrus
action filter_type
action find
entity Europe
relation highest point
type terrain
['Europe', 'highest point', {'concept': 'terrain'}]
SELECT DISTINCT ?c WHERE { resource:Europe property:highest_point ?c . ?c rdf:type ontology:terrain }
[]