Simple Question (Direct)
Simple Question
Q437801
P108
Q43229
USER
Who is the employer of Ben Verwaayen ?
(Q437801,P108,c(Q43229))
action filter_type
action find
entity Q437801
relation P108
type Q43229
['Q437801', 'P108', {'concept': 'Q43229'}]
SELECT DISTINCT ?a WHERE { resource:Q437801 property:P108 ?a . ?a rdf:type ontology:Q43229 }
Ben Verwaayen
action filter_type
action find
entity Ben Verwaayen
relation employer
type organization
['Ben Verwaayen', 'employer', {'concept': 'organization'}]
SELECT DISTINCT ?a WHERE { resource:Ben_Verwaayen property:employer ?a . ?a rdf:type ontology:organization }
[]
organization
Q582418
SYSTEM
ITT Corporation
Q582418
(Q437801,P108,c(Q43229))
action filter_type
action find
entity Q437801
relation P108
type Q43229
The employer of Ben Verwaayen is the [ANSWER]
['Q437801', 'P108', {'concept': 'Q43229'}]
SELECT DISTINCT ?a WHERE { resource:Q437801 property:P108 ?a . ?a rdf:type ontology:Q43229 }
ITT Corporation
The employer of Ben Verwaayen is the ITT Corporation
ITT Corporation
action filter_type
action find
entity Ben Verwaayen
relation employer
type organization
['Ben Verwaayen', 'employer', {'concept': 'organization'}]
SELECT DISTINCT ?a WHERE { resource:Ben_Verwaayen property:employer ?a . ?a rdf:type ontology:organization }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q21460563 Q437801
P27
Q15617994
USER
Which administrative territories are Ben Verwaayen or Frank Thomas Copnall a civilian of ?
OR((Q437801,P27,c(Q15617994)), (Q21460563,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q437801
relation P27
action find
entity Q21460563
relation P27
type Q15617994
{'OR': [['Q437801', 'P27', {'concept': 'Q15617994'}], ['Q21460563', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?e WHERE { { VALUES ( ?d ) { ( resource:Q437801 ) ( resource:Q21460563 ) } . ?d property:P27 ?e } . ?e rdf:type ontology:Q15617994 }
Frank Thomas Copnall Ben Verwaayen
action filter_type
action union
action find
entity Ben Verwaayen
relation country of citizenship
action find
entity Frank Thomas Copnall
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Ben Verwaayen', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Frank Thomas Copnall', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?e WHERE { { VALUES ( ?d ) { ( resource:Ben_Verwaayen ) ( resource:Frank_Thomas_Copnall ) } . ?d property:country_of_citizenship ?e } . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q29999 Q145
SYSTEM
Kingdom of the Netherlands, United Kingdom
Q29999 Q145
OR((Q437801,P27,c(Q15617994)), (Q21460563,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q437801
relation P27
action find
entity Q21460563
relation P27
type Q15617994
[ANSWERS] are Ben Verwaayen or Frank Thomas Copnall a civilian of
{'OR': [['Q437801', 'P27', {'concept': 'Q15617994'}], ['Q21460563', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?e WHERE { { VALUES ( ?d ) { ( resource:Q437801 ) ( resource:Q21460563 ) } . ?d property:P27 ?e } . ?e rdf:type ontology:Q15617994 }
Kingdom of the Netherlands United Kingdom
Kingdom of the Netherlands and United Kingdom are Ben Verwaayen or Frank Thomas Copnall a civilian of
Kingdom of the Netherlands United Kingdom
action filter_type
action union
action find
entity Ben Verwaayen
relation country of citizenship
action find
entity Frank Thomas Copnall
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Ben Verwaayen', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Frank Thomas Copnall', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?e WHERE { { VALUES ( ?d ) { ( resource:Ben_Verwaayen ) ( resource:Frank_Thomas_Copnall ) } . ?d property:country_of_citizenship ?e } . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q29999
P35
Q502895
USER
Which person has the highest formal authority in Kingdom of the Netherlands ?
(Q29999,P35,c(Q502895))
action filter_type
action find
entity Q29999
relation P35
type Q502895
['Q29999', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?s WHERE { resource:Q29999 property:P35 ?s . ?s rdf:type ontology:Q502895 }
Kingdom of the Netherlands
action filter_type
action find
entity Kingdom of the Netherlands
relation head of state
type common name
['Kingdom of the Netherlands', 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?s WHERE { resource:Kingdom_of_the_Netherlands property:head_of_state ?s . ?s rdf:type ontology:common_name }
[]
common name
Q154952
SYSTEM
Willem-Alexander of the Netherlands
Q154952
(Q29999,P35,c(Q502895))
action filter_type
action find
entity Q29999
relation P35
type Q502895
[ANSWER] has the highest formal authority in Kingdom of the Netherlands
['Q29999', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?s WHERE { resource:Q29999 property:P35 ?s . ?s rdf:type ontology:Q502895 }
Willem-Alexander of the Netherlands
Willem-Alexander of the Netherlands has the highest formal authority in Kingdom of the Netherlands
Willem-Alexander of the Netherlands
action filter_type
action find
entity Kingdom of the Netherlands
relation head of state
type common name
['Kingdom of the Netherlands', 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?s WHERE { resource:Kingdom_of_the_Netherlands property:head_of_state ?s . ?s rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q154952
P25
Q502895
USER
Who was the mom of that one ?
(Q154952,P25,c(Q502895))
action filter_type
action find
entity Q154952
relation P25
type Q502895
['Q154952', 'P25', {'concept': 'Q502895'}]
SELECT DISTINCT ?j WHERE { resource:Q154952 property:P25 ?j . ?j rdf:type ontology:Q502895 }
Willem-Alexander of the Netherlands
action filter_type
action find
entity Willem-Alexander of the Netherlands
relation mother
type common name
['Willem-Alexander of the Netherlands', 'mother', {'concept': 'common name'}]
SELECT DISTINCT ?j WHERE { resource:Willem-Alexander_of_the_Netherlands property:mother ?j . ?j rdf:type ontology:common_name }
[]
common name
Q29574
SYSTEM
Beatrix of the Netherlands
Q29574
(Q154952,P25,c(Q502895))
action filter_type
action find
entity Q154952
relation P25
type Q502895
The mom of that one was [ANSWER]
['Q154952', 'P25', {'concept': 'Q502895'}]
SELECT DISTINCT ?j WHERE { resource:Q154952 property:P25 ?j . ?j rdf:type ontology:Q502895 }
Beatrix of the Netherlands
The mom of that one was Beatrix of the Netherlands
Beatrix of the Netherlands
action filter_type
action find
entity Willem-Alexander of the Netherlands
relation mother
type common name
['Willem-Alexander of the Netherlands', 'mother', {'concept': 'common name'}]
SELECT DISTINCT ?j WHERE { resource:Willem-Alexander_of_the_Netherlands property:mother ?j . ?j rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q29574 Q29999
P27
Q15617994
USER
Is that person an inhabitant of Kingdom of the Netherlands ?
(Q29574,P27,Q29999)
action is_in
entity Q29999
action find
entity Q29574
relation P27
['Q29574', 'P27', 'Q29999']
ASK WHERE { resource:Q29574 property:P27 resource:Q29999 }
Beatrix of the Netherlands Kingdom of the Netherlands
action is_in
entity Kingdom of the Netherlands
action find
entity Beatrix of the Netherlands
relation country of citizenship
['Beatrix of the Netherlands', 'country of citizenship', 'Kingdom of the Netherlands']
ASK WHERE { resource:Beatrix_of_the_Netherlands property:country_of_citizenship resource:Kingdom_of_the_Netherlands }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q29574,P27,Q29999)
action is_in
entity Q29999
action find
entity Q29574
relation P27
[ANSWER]
['Q29574', 'P27', 'Q29999']
ASK WHERE { resource:Q29574 property:P27 resource:Q29999 }
Yes
action is_in
entity Kingdom of the Netherlands
action find
entity Beatrix of the Netherlands
relation country of citizenship
['Beatrix of the Netherlands', 'country of citizenship', 'Kingdom of the Netherlands']
ASK WHERE { resource:Beatrix_of_the_Netherlands property:country_of_citizenship resource:Kingdom_of_the_Netherlands }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q29999 Q899770 Q827525
P463
Q43229
USER
Is Kingdom of the Netherlands a part of International Centre for Settlement of Investment Disputes and International Development Association ?
(Q29999,P463,Q899770) (Q29999,P463,Q827525)
action is_in
entity Q29999
action intersection
action find_reverse
entity Q899770
relation P463
action find_reverse
entity Q827525
relation P463
['Q29999', 'P463', 'Q899770'] ['Q29999', 'P463', 'Q827525']
ASK WHERE { resource:Q29999 property:P463 resource:Q899770 . resource:Q29999 property:P463 resource:Q827525 }
Kingdom of the Netherlands International Centre for Settlement of Investment Disputes International Development Association
action is_in
entity Kingdom of the Netherlands
action intersection
action find_reverse
entity International Centre for Settlement of Investment Disputes
relation member of
action find_reverse
entity International Development Association
relation member of
['Kingdom of the Netherlands', 'member of', 'International Centre for Settlement of Investment Disputes'] ['Kingdom of the Netherlands', 'member of', 'International Development Association']
ASK WHERE { resource:Kingdom_of_the_Netherlands property:member_of resource:International_Centre_for_Settlement_of_Investment_Disputes . resource:Kingdom_of_the_Netherlands property:member_of resource:International_Development_Association }
[]
organization
SYSTEM
YES
(Q29999,P463,Q899770) (Q29999,P463,Q827525)
action is_in
entity Q29999
action intersection
action find_reverse
entity Q899770
relation P463
action find_reverse
entity Q827525
relation P463
[ANSWER]
['Q29999', 'P463', 'Q899770'] ['Q29999', 'P463', 'Q827525']
ASK WHERE { resource:Q29999 property:P463 resource:Q899770 . resource:Q29999 property:P463 resource:Q827525 }
Yes
action is_in
entity Kingdom of the Netherlands
action intersection
action find_reverse
entity International Centre for Settlement of Investment Disputes
relation member of
action find_reverse
entity International Development Association
relation member of
['Kingdom of the Netherlands', 'member of', 'International Centre for Settlement of Investment Disputes'] ['Kingdom of the Netherlands', 'member of', 'International Development Association']
ASK WHERE { resource:Kingdom_of_the_Netherlands property:member_of resource:International_Centre_for_Settlement_of_Investment_Disputes . resource:Kingdom_of_the_Netherlands property:member_of resource:International_Development_Association }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
How many musical instruments can around 1414 people perform with ?
(c(Q502895),P1303,c(Q34379))
action count
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 1414
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?h ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?p ) AS ?f ) WHERE { ?p property:P1303 ?g . ?g rdf:type ontology:Q34379 . ?p rdf:type ontology:Q502895 } GROUP BY ?g } . FILTER ( ?f = 1414 ) }
action count
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 1414
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?h ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?p ) AS ?f ) WHERE { ?p property:instrument ?g . ?g rdf:type ontology:musical_instrument . ?p rdf:type ontology:common_name } GROUP BY ?g } . FILTER ( ?f = 1414 ) }
[]
musical instrument common name
SYSTEM
11
Q80284 Q46185 Q80019 Q81982 Q206987 Q8338 Q8371 Q3382191 Q1444 Q128309 Q1343007
(c(Q502895),P1303,c(Q34379))
action count
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 1414
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?h ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?p ) AS ?f ) WHERE { ?p property:P1303 ?g . ?g rdf:type ontology:Q34379 . ?p rdf:type ontology:Q502895 } GROUP BY ?g } . FILTER ( ?f = 1414 ) }
viola bass guitar double bass harpsichord vibraphone trumpet cello upright piano organ drum kit electronic keyboard
11
action count
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 1414
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?h ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?p ) AS ?f ) WHERE { ?p property:instrument ?g . ?g rdf:type ontology:musical_instrument . ?p rdf:type ontology:common_name } GROUP BY ?g } . FILTER ( ?f = 1414 ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q503757
P138
Q15617994 Q376799 Q12280
USER
How many administrative territories are namesakes of greater number of transport infrastructures or bridges than Oberammergau ?
(c(Q376799)|c(Q12280),P138,c(Q15617994))
action count
action greater
action union
action find_reverse_tuple_counts
relation P138
type Q15617994
type Q376799
action find_reverse_tuple_counts
relation P138
type Q15617994
type Q12280
action count
action filter_multi_types
action find_reverse
entity Q503757
relation P138
type Q376799
type Q12280
[[{'concept': 'Q376799'}, {'concept': 'Q12280'}], 'P138', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?p ) WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?j ) WHERE { ?i property:P138 resource:Q503757 . { VALUES ( ?d ) { ( ontology:Q376799 ) ( ontology:Q12280 ) } . ?i rdf:type ?d } } } . FILTER ( ?z > ?j ) . { SELECT DISTINCT ?k ( COUNT ( ?u ) AS ?z ) WHERE { { ?u property:P138 ?k . ?k rdf:type ontology:Q15617994 . ?u rdf:type ontology:Q12280 } UNION { ?u property:P138 ?k . ?k rdf:type ontology:Q15617994 . ?u rdf:type ontology:Q376799 } } GROUP BY ?k } }
Oberammergau
action count
action greater
action union
action find_reverse_tuple_counts
relation named after
type designation for an administrative territorial entity
type transport infrastructure
action find_reverse_tuple_counts
relation named after
type designation for an administrative territorial entity
type bridge
action count
action filter_multi_types
action find_reverse
entity Oberammergau
relation named after
type transport infrastructure
type bridge
[[{'concept': 'transport infrastructure'}, {'concept': 'bridge'}], 'named after', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?p ) WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?j ) WHERE { ?i property:named_after resource:Oberammergau . { VALUES ( ?d ) { ( ontology:transport_infrastructure ) ( ontology:bridge ) } . ?i rdf:type ?d } } } . FILTER ( ?z > ?j ) . { SELECT DISTINCT ?k ( COUNT ( ?u ) AS ?z ) WHERE { { ?u property:named_after ?k . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . ?u rdf:type ontology:bridge } UNION { ?u property:named_after ?k . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . ?u rdf:type ontology:transport_infrastructure } } GROUP BY ?k } }
[]
designation for an administrative territorial entity transport infrastructure bridge
SYSTEM
5
Q705 Q39 Q478142 Q2938 Q142
(c(Q376799)|c(Q12280),P138,c(Q15617994))
action count
action greater
action union
action find_reverse_tuple_counts
relation P138
type Q15617994
type Q376799
action find_reverse_tuple_counts
relation P138
type Q15617994
type Q12280
action count
action filter_multi_types
action find_reverse
entity Q503757
relation P138
type Q376799
type Q12280
[ANSWER]
[[{'concept': 'Q376799'}, {'concept': 'Q12280'}], 'P138', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?p ) WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?j ) WHERE { ?i property:P138 resource:Q503757 . { VALUES ( ?d ) { ( ontology:Q376799 ) ( ontology:Q12280 ) } . ?i rdf:type ?d } } } . FILTER ( ?z > ?j ) . { SELECT DISTINCT ?k ( COUNT ( ?u ) AS ?z ) WHERE { { ?u property:P138 ?k . ?k rdf:type ontology:Q15617994 . ?u rdf:type ontology:Q12280 } UNION { ?u property:P138 ?k . ?k rdf:type ontology:Q15617994 . ?u rdf:type ontology:Q376799 } } GROUP BY ?k } }
Zeeland Switzerland Schierstein Leverkusen France
5
action count
action greater
action union
action find_reverse_tuple_counts
relation named after
type designation for an administrative territorial entity
type transport infrastructure
action find_reverse_tuple_counts
relation named after
type designation for an administrative territorial entity
type bridge
action count
action filter_multi_types
action find_reverse
entity Oberammergau
relation named after
type transport infrastructure
type bridge
[[{'concept': 'transport infrastructure'}, {'concept': 'bridge'}], 'named after', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?p ) WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?j ) WHERE { ?i property:named_after resource:Oberammergau . { VALUES ( ?d ) { ( ontology:transport_infrastructure ) ( ontology:bridge ) } . ?i rdf:type ?d } } } . FILTER ( ?z > ?j ) . { SELECT DISTINCT ?k ( COUNT ( ?u ) AS ?z ) WHERE { { ?u property:named_after ?k . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . ?u rdf:type ontology:bridge } UNION { ?u property:named_after ?k . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . ?u rdf:type ontology:transport_infrastructure } } GROUP BY ?k } }
[]