Simple Question (Direct)
Simple Question
Q1929065
P641
Q349
USER
What did Martin Reynders participate in ?
(Q1929065,P641,c(Q349))
action filter_type
action find
entity Q1929065
relation P641
type Q349
['Q1929065', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?b WHERE { resource:Q1929065 property:P641 ?b . ?b rdf:type ontology:Q349 }
Martin Reynders
action filter_type
action find
entity Martin Reynders
relation sport
type sport
['Martin Reynders', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?b WHERE { resource:Martin_Reynders property:sport ?b . ?b rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q1929065,P641,c(Q349))
action filter_type
action find
entity Q1929065
relation P641
type Q349
Martin Reynders participated in [ANSWER]
['Q1929065', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?b WHERE { resource:Q1929065 property:P641 ?b . ?b rdf:type ontology:Q349 }
association football
Martin Reynders participated in association football
association football
action filter_type
action find
entity Martin Reynders
relation sport
type sport
['Martin Reynders', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?b WHERE { resource:Martin_Reynders property:sport ?b . ?b rdf:type ontology:sport }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1929065
P27
Q15617994
USER
Which administrative territory is the country of citizenship of Martin Reynders ?
(Q1929065,P27,c(Q15617994))
action filter_type
action find
entity Q1929065
relation P27
type Q15617994
['Q1929065', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q15617994 . resource:Q1929065 property:P27 ?t }
Martin Reynders
action filter_type
action find
entity Martin Reynders
relation country of citizenship
type designation for an administrative territorial entity
['Martin Reynders', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Martin_Reynders property:country_of_citizenship ?t }
[]
designation for an administrative territorial entity
Q29999
SYSTEM
Kingdom of the Netherlands
Q29999
(Q1929065,P27,c(Q15617994))
action filter_type
action find
entity Q1929065
relation P27
type Q15617994
[ANSWER] is the country of citizenship of Martin Reynders
['Q1929065', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q15617994 . resource:Q1929065 property:P27 ?t }
Kingdom of the Netherlands
Kingdom of the Netherlands is the country of citizenship of Martin Reynders
Kingdom of the Netherlands
action filter_type
action find
entity Martin Reynders
relation country of citizenship
type designation for an administrative territorial entity
['Martin Reynders', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Martin_Reynders property:country_of_citizenship ?t }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q20736188
Q15617994
USER
And what about Thea Nielsen?
(Q20736188,P27,c(Q15617994))
action filter_type
action find
entity Q20736188
relation P27
type Q15617994
['Q20736188', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { resource:Q20736188 property:P27 ?s . ?s rdf:type ontology:Q15617994 }
Thea Nielsen
action filter_type
action find
entity Thea Nielsen
relation country of citizenship
type designation for an administrative territorial entity
['Thea Nielsen', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:Thea_Nielsen property:country_of_citizenship ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q20
SYSTEM
Norway
Q20
(Q20736188,P27,c(Q15617994))
action filter_type
action find
entity Q20736188
relation P27
type Q15617994
[ANSWER]
['Q20736188', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { resource:Q20736188 property:P27 ?s . ?s rdf:type ontology:Q15617994 }
Norway
Norway
action filter_type
action find
entity Thea Nielsen
relation country of citizenship
type designation for an administrative territorial entity
['Thea Nielsen', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:Thea_Nielsen property:country_of_citizenship ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q483457 Q1929065
P106
Q12737077
USER
Which occupations do Martin Reynders and Magno Alves do for a living ?
AND((Q1929065,P106,c(Q12737077)), (Q483457,P106,c(Q12737077)))
action filter_type
action intersection
action find
entity Q1929065
relation P106
action find
entity Q483457
relation P106
type Q12737077
{'AND': [['Q1929065', 'P106', {'concept': 'Q12737077'}], ['Q483457', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?m WHERE { resource:Q1929065 property:P106 ?m . resource:Q483457 property:P106 ?m . ?m rdf:type ontology:Q12737077 }
Magno Alves Martin Reynders
action filter_type
action intersection
action find
entity Martin Reynders
relation occupation
action find
entity Magno Alves
relation occupation
type occupation
{'AND': [['Martin Reynders', 'occupation', {'concept': 'occupation'}], ['Magno Alves', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?m WHERE { resource:Martin_Reynders property:occupation ?m . resource:Magno_Alves property:occupation ?m . ?m rdf:type ontology:occupation }
[]
occupation
Q937857
SYSTEM
association football player
Q937857
AND((Q1929065,P106,c(Q12737077)), (Q483457,P106,c(Q12737077)))
action filter_type
action intersection
action find
entity Q1929065
relation P106
action find
entity Q483457
relation P106
type Q12737077
Martin Reynders and Magno Alves do for a living in [ANSWER]
{'AND': [['Q1929065', 'P106', {'concept': 'Q12737077'}], ['Q483457', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?m WHERE { resource:Q1929065 property:P106 ?m . resource:Q483457 property:P106 ?m . ?m rdf:type ontology:Q12737077 }
association football player
Martin Reynders and Magno Alves do for a living in association football player
association football player
action filter_type
action intersection
action find
entity Martin Reynders
relation occupation
action find
entity Magno Alves
relation occupation
type occupation
{'AND': [['Martin Reynders', 'occupation', {'concept': 'occupation'}], ['Magno Alves', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?m WHERE { resource:Martin_Reynders property:occupation ?m . resource:Magno_Alves property:occupation ?m . ?m rdf:type ontology:occupation }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q29999 Q846
P530
Q15617994
USER
How many administrative territories have tactful political relations with Kingdom of the Netherlands or Qatar ?
(c(Q15617994),P530,Q29999) (c(Q15617994),P530,Q846)
action count
action union
action filter_type
action find_reverse
entity Q29999
relation P530
type Q15617994
action filter_type
action find_reverse
entity Q846
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', 'Q29999'] [{'concept': 'Q15617994'}, 'P530', 'Q846']
SELECT DISTINCT ( COUNT ( ?h ) AS ?e ) WHERE { ?h property:P530 ?r . VALUES ( ?r ) { ( resource:Q29999 ) ( resource:Q846 ) } }
Kingdom of the Netherlands Qatar
action count
action union
action filter_type
action find_reverse
entity Kingdom of the Netherlands
relation diplomatic relation
type designation for an administrative territorial entity
action filter_type
action find_reverse
entity Qatar
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Kingdom of the Netherlands'] [{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Qatar']
SELECT DISTINCT ( COUNT ( ?h ) AS ?e ) WHERE { ?h property:diplomatic_relation ?r . VALUES ( ?r ) { ( resource:Kingdom_of_the_Netherlands ) ( resource:Qatar ) } }
[]
designation for an administrative territorial entity
SYSTEM
4
Q858 Q929 Q805 Q230
(c(Q15617994),P530,Q29999) (c(Q15617994),P530,Q846)
action count
action union
action filter_type
action find_reverse
entity Q29999
relation P530
type Q15617994
action filter_type
action find_reverse
entity Q846
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', 'Q29999'] [{'concept': 'Q15617994'}, 'P530', 'Q846']
SELECT DISTINCT ( COUNT ( ?h ) AS ?e ) WHERE { ?h property:P530 ?r . VALUES ( ?r ) { ( resource:Q29999 ) ( resource:Q846 ) } }
Syria Central African Republic Yemen Georgia
4
action count
action union
action filter_type
action find_reverse
entity Kingdom of the Netherlands
relation diplomatic relation
type designation for an administrative territorial entity
action filter_type
action find_reverse
entity Qatar
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Kingdom of the Netherlands'] [{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Qatar']
SELECT DISTINCT ( COUNT ( ?h ) AS ?e ) WHERE { ?h property:diplomatic_relation ?r . VALUES ( ?r ) { ( resource:Kingdom_of_the_Netherlands ) ( resource:Qatar ) } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q16968866
P608
Q464980 Q667276 Q502895
USER
Which people were exhibited at more number of exhibitions or art exhibitions than Lydia Schouten ?
(c(Q502895),P608,c(Q464980)|c(Q667276))
action greater
action union
action find_tuple_counts
relation P608
type Q502895
type Q464980
action find_tuple_counts
relation P608
type Q502895
type Q667276
action count
action filter_multi_types
action find
entity Q16968866
relation P608
type Q464980
type Q667276
[{'concept': 'Q502895'}, 'P608', [{'concept': 'Q464980'}, {'concept': 'Q667276'}]]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?n ) WHERE { resource:Q16968866 property:P608 ?j . { VALUES ( ?h ) { ( ontology:Q667276 ) ( ontology:Q464980 ) } . ?j rdf:type ?h } } } . FILTER ( ?y > ?n ) . { SELECT DISTINCT ( COUNT ( ?l ) AS ?y ) ?i WHERE { { ?i property:P608 ?l . ?l rdf:type ontology:Q464980 . ?i rdf:type ontology:Q502895 } UNION { ?i property:P608 ?l . ?i rdf:type ontology:Q502895 . ?l rdf:type ontology:Q667276 } } GROUP BY ?i } }
Lydia Schouten
action greater
action union
action find_tuple_counts
relation exhibition history
type common name
type exhibition
action find_tuple_counts
relation exhibition history
type common name
type art exhibition
action count
action filter_multi_types
action find
entity Lydia Schouten
relation exhibition history
type exhibition
type art exhibition
[{'concept': 'common name'}, 'exhibition history', [{'concept': 'exhibition'}, {'concept': 'art exhibition'}]]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?n ) WHERE { resource:Lydia_Schouten property:exhibition_history ?j . { VALUES ( ?h ) { ( ontology:art_exhibition ) ( ontology:exhibition ) } . ?j rdf:type ?h } } } . FILTER ( ?y > ?n ) . { SELECT DISTINCT ( COUNT ( ?l ) AS ?y ) ?i WHERE { { ?i property:exhibition_history ?l . ?l rdf:type ontology:exhibition . ?i rdf:type ontology:common_name } UNION { ?i property:exhibition_history ?l . ?i rdf:type ontology:common_name . ?l rdf:type ontology:art_exhibition } } GROUP BY ?i } }
[]
exhibition art exhibition common name
Q1964408 Q3335569 Q16004451
SYSTEM
Nan Hoover, Nancy Elizabeth Prophet, Jennifer Bolande
Q70006 Q16004451 Q16005428 Q1964408 Q9015308 Q3335569
(c(Q502895),P608,c(Q464980)|c(Q667276))
action greater
action union
action find_tuple_counts
relation P608
type Q502895
type Q464980
action find_tuple_counts
relation P608
type Q502895
type Q667276
action count
action filter_multi_types
action find
entity Q16968866
relation P608
type Q464980
type Q667276
[ANSWERS] were exhibited at more number of exhibitions or art exhibitions than Lydia Schouten
[{'concept': 'Q502895'}, 'P608', [{'concept': 'Q464980'}, {'concept': 'Q667276'}]]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?n ) WHERE { resource:Q16968866 property:P608 ?j . { VALUES ( ?h ) { ( ontology:Q667276 ) ( ontology:Q464980 ) } . ?j rdf:type ?h } } } . FILTER ( ?y > ?n ) . { SELECT DISTINCT ( COUNT ( ?l ) AS ?y ) ?i WHERE { { ?i property:P608 ?l . ?l rdf:type ontology:Q464980 . ?i rdf:type ontology:Q502895 } UNION { ?i property:P608 ?l . ?i rdf:type ontology:Q502895 . ?l rdf:type ontology:Q667276 } } GROUP BY ?i } }
Lotte Jacobi Jennifer Bolande Andrea Bowers Nan Hoover Juan Carlos Alom Nancy Elizabeth Prophet
Nan Hoover, Nancy Elizabeth Prophet and Jennifer Bolande were exhibited at more number of exhibitions or art exhibitions than Lydia Schouten
Nan Hoover Nancy Elizabeth Prophet Jennifer Bolande
action greater
action union
action find_tuple_counts
relation exhibition history
type common name
type exhibition
action find_tuple_counts
relation exhibition history
type common name
type art exhibition
action count
action filter_multi_types
action find
entity Lydia Schouten
relation exhibition history
type exhibition
type art exhibition
[{'concept': 'common name'}, 'exhibition history', [{'concept': 'exhibition'}, {'concept': 'art exhibition'}]]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?n ) WHERE { resource:Lydia_Schouten property:exhibition_history ?j . { VALUES ( ?h ) { ( ontology:art_exhibition ) ( ontology:exhibition ) } . ?j rdf:type ?h } } } . FILTER ( ?y > ?n ) . { SELECT DISTINCT ( COUNT ( ?l ) AS ?y ) ?i WHERE { { ?i property:exhibition_history ?l . ?l rdf:type ontology:exhibition . ?i rdf:type ontology:common_name } UNION { ?i property:exhibition_history ?l . ?i rdf:type ontology:common_name . ?l rdf:type ontology:art_exhibition } } GROUP BY ?i } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q5671224
P608
Q464980 Q667276 Q502895
USER
And how about Pablo Borges Delgado?
(c(Q502895),P608,c(Q464980)|c(Q667276))
action greater
action union
action find_tuple_counts
relation P608
type Q502895
type Q464980
action find_tuple_counts
relation P608
type Q502895
type Q667276
action count
action filter_multi_types
action find
entity Q5671224
relation P608
type Q464980
type Q667276
[{'concept': 'Q502895'}, 'P608', [{'concept': 'Q464980'}, {'concept': 'Q667276'}]]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?b ) ?t WHERE { { ?t rdf:type ontology:Q502895 . ?s rdf:type ontology:Q464980 . ?t property:P608 ?s } UNION { ?t property:P608 ?s . ?t rdf:type ontology:Q502895 . ?s rdf:type ontology:Q667276 } } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?u ) WHERE { resource:Q5671224 property:P608 ?c . { { ?c rdf:type ontology:Q464980 } UNION { ?c rdf:type ontology:Q667276 } } } } . FILTER ( ?b > ?u ) }
Pablo Borges Delgado
action greater
action union
action find_tuple_counts
relation exhibition history
type common name
type exhibition
action find_tuple_counts
relation exhibition history
type common name
type art exhibition
action count
action filter_multi_types
action find
entity Pablo Borges Delgado
relation exhibition history
type exhibition
type art exhibition
[{'concept': 'common name'}, 'exhibition history', [{'concept': 'exhibition'}, {'concept': 'art exhibition'}]]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?b ) ?t WHERE { { ?t rdf:type ontology:common_name . ?s rdf:type ontology:exhibition . ?t property:exhibition_history ?s } UNION { ?t property:exhibition_history ?s . ?t rdf:type ontology:common_name . ?s rdf:type ontology:art_exhibition } } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?u ) WHERE { resource:Pablo_Borges_Delgado property:exhibition_history ?c . { { ?c rdf:type ontology:exhibition } UNION { ?c rdf:type ontology:art_exhibition } } } } . FILTER ( ?b > ?u ) }
[]
exhibition art exhibition common name
Q1964408 Q3335569 Q16004451
SYSTEM
Nan Hoover, Nancy Elizabeth Prophet, Jennifer Bolande
Q70006 Q16004451 Q16005428 Q1964408 Q9015308 Q3335569
(c(Q502895),P608,c(Q464980)|c(Q667276))
action greater
action union
action find_tuple_counts
relation P608
type Q502895
type Q464980
action find_tuple_counts
relation P608
type Q502895
type Q667276
action count
action filter_multi_types
action find
entity Q5671224
relation P608
type Q464980
type Q667276
[ANSWERS]
[{'concept': 'Q502895'}, 'P608', [{'concept': 'Q464980'}, {'concept': 'Q667276'}]]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?b ) ?t WHERE { { ?t rdf:type ontology:Q502895 . ?s rdf:type ontology:Q464980 . ?t property:P608 ?s } UNION { ?t property:P608 ?s . ?t rdf:type ontology:Q502895 . ?s rdf:type ontology:Q667276 } } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?u ) WHERE { resource:Q5671224 property:P608 ?c . { { ?c rdf:type ontology:Q464980 } UNION { ?c rdf:type ontology:Q667276 } } } } . FILTER ( ?b > ?u ) }
Lotte Jacobi Jennifer Bolande Andrea Bowers Nan Hoover Juan Carlos Alom Nancy Elizabeth Prophet
Nan Hoover Nancy Elizabeth Prophet Jennifer Bolande
action greater
action union
action find_tuple_counts
relation exhibition history
type common name
type exhibition
action find_tuple_counts
relation exhibition history
type common name
type art exhibition
action count
action filter_multi_types
action find
entity Pablo Borges Delgado
relation exhibition history
type exhibition
type art exhibition
[{'concept': 'common name'}, 'exhibition history', [{'concept': 'exhibition'}, {'concept': 'art exhibition'}]]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?b ) ?t WHERE { { ?t rdf:type ontology:common_name . ?s rdf:type ontology:exhibition . ?t property:exhibition_history ?s } UNION { ?t property:exhibition_history ?s . ?t rdf:type ontology:common_name . ?s rdf:type ontology:art_exhibition } } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?u ) WHERE { resource:Pablo_Borges_Delgado property:exhibition_history ?c . { { ?c rdf:type ontology:exhibition } UNION { ?c rdf:type ontology:art_exhibition } } } } . FILTER ( ?b > ?u ) }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q79799 Q483457
P27 P17
Q15617994
USER
Which administrative territories do Magno Alves belong to and are Daehwa Station present in ?
AND((Q483457,P27,c(Q15617994)), (Q79799,P17,c(Q15617994)))
action filter_type
action intersection
action find
entity Q483457
relation P27
action find
entity Q79799
relation P17
type Q15617994
{'AND': [['Q483457', 'P27', {'concept': 'Q15617994'}], ['Q79799', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?k WHERE { resource:Q483457 property:P27 ?k . resource:Q79799 property:P17 ?k . ?k rdf:type ontology:Q15617994 }
Daehwa Station Magno Alves
action filter_type
action intersection
action find
entity Magno Alves
relation country of citizenship
action find
entity Daehwa Station
relation country
type designation for an administrative territorial entity
{'AND': [['Magno Alves', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Daehwa Station', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?k WHERE { resource:Magno_Alves property:country_of_citizenship ?k . resource:Daehwa_Station property:country ?k . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q884
SYSTEM
South Korea
Q884
AND((Q483457,P27,c(Q15617994)), (Q79799,P17,c(Q15617994)))
action filter_type
action intersection
action find
entity Q483457
relation P27
action find
entity Q79799
relation P17
type Q15617994
Magno Alves belong to [ANSWER] and are Daehwa Station present
{'AND': [['Q483457', 'P27', {'concept': 'Q15617994'}], ['Q79799', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?k WHERE { resource:Q483457 property:P27 ?k . resource:Q79799 property:P17 ?k . ?k rdf:type ontology:Q15617994 }
South Korea
Magno Alves belong to South Korea and are Daehwa Station present
South Korea
action filter_type
action intersection
action find
entity Magno Alves
relation country of citizenship
action find
entity Daehwa Station
relation country
type designation for an administrative territorial entity
{'AND': [['Magno Alves', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Daehwa Station', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?k WHERE { resource:Magno_Alves property:country_of_citizenship ?k . resource:Daehwa_Station property:country ?k . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q884 Q1641209 Q4430423
P530
Q1048835
USER
Does that administrative territory have diplomatic relations with Arcicóllar and Soshnyky ?
(Q884,P530,Q1641209) (Q884,P530,Q4430423)
action is_in
entity Q884
action intersection
action find_reverse
entity Q1641209
relation P530
action find_reverse
entity Q4430423
relation P530
['Q884', 'P530', 'Q1641209'] ['Q884', 'P530', 'Q4430423']
ASK WHERE { resource:Q884 property:P530 resource:Q1641209 . resource:Q884 property:P530 resource:Q4430423 }
South Korea Arcicóllar Soshnyky
action is_in
entity South Korea
action intersection
action find_reverse
entity Arcicóllar
relation diplomatic relation
action find_reverse
entity Soshnyky
relation diplomatic relation
['South Korea', 'diplomatic relation', 'Arcicóllar'] ['South Korea', 'diplomatic relation', 'Soshnyky']
ASK WHERE { resource:South_Korea property:diplomatic_relation resource:Arcicóllar . resource:South_Korea property:diplomatic_relation resource:Soshnyky }
[]
political territorial entity
SYSTEM
NO
(Q884,P530,Q1641209) (Q884,P530,Q4430423)
action is_in
entity Q884
action intersection
action find_reverse
entity Q1641209
relation P530
action find_reverse
entity Q4430423
relation P530
[ANSWER]
['Q884', 'P530', 'Q1641209'] ['Q884', 'P530', 'Q4430423']
ASK WHERE { resource:Q884 property:P530 resource:Q1641209 . resource:Q884 property:P530 resource:Q4430423 }
No
action is_in
entity South Korea
action intersection
action find_reverse
entity Arcicóllar
relation diplomatic relation
action find_reverse
entity Soshnyky
relation diplomatic relation
['South Korea', 'diplomatic relation', 'Arcicóllar'] ['South Korea', 'diplomatic relation', 'Soshnyky']
ASK WHERE { resource:South_Korea property:diplomatic_relation resource:Arcicóllar . resource:South_Korea property:diplomatic_relation resource:Soshnyky }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q24058759 Q1964408
P608 P195
Q2668072
USER
Which collections were Nan Hoover displayed at and are Composition with Yellow, Red, Black, Blue, and Gray preserved in ?
AND((Q1964408,P608,c(Q2668072)), (Q24058759,P195,c(Q2668072)))
action filter_type
action intersection
action find
entity Q1964408
relation P608
action find
entity Q24058759
relation P195
type Q2668072
{'AND': [['Q1964408', 'P608', {'concept': 'Q2668072'}], ['Q24058759', 'P195', {'concept': 'Q2668072'}]]}
SELECT DISTINCT ?m WHERE { resource:Q24058759 property:P195 ?m . resource:Q1964408 property:P608 ?m . ?m rdf:type ontology:Q2668072 }
Composition with Yellow, Red, Black, Blue, and Gray Nan Hoover
action filter_type
action intersection
action find
entity Nan Hoover
relation exhibition history
action find
entity Composition with Yellow, Red, Black, Blue, and Gray
relation collection
type collection
{'AND': [['Nan Hoover', 'exhibition history', {'concept': 'collection'}], ['Composition with Yellow, Red, Black, Blue, and Gray', 'collection', {'concept': 'collection'}]]}
SELECT DISTINCT ?m WHERE { resource:Composition_with_Yellow,_Red,_Black,_Blue,_and_Gray property:collection ?m . resource:Nan_Hoover property:exhibition_history ?m . ?m rdf:type ontology:collection }
[]
collection
Q924335
SYSTEM
Stedelijk Museum Amsterdam
Q924335
AND((Q1964408,P608,c(Q2668072)), (Q24058759,P195,c(Q2668072)))
action filter_type
action intersection
action find
entity Q1964408
relation P608
action find
entity Q24058759
relation P195
type Q2668072
Nan Hoover were displayed at [ANSWER] and are Composition with Yellow , Red , Black , Blue , and Gray preserved in
{'AND': [['Q1964408', 'P608', {'concept': 'Q2668072'}], ['Q24058759', 'P195', {'concept': 'Q2668072'}]]}
SELECT DISTINCT ?m WHERE { resource:Q24058759 property:P195 ?m . resource:Q1964408 property:P608 ?m . ?m rdf:type ontology:Q2668072 }
Stedelijk Museum Amsterdam
Nan Hoover were displayed at Stedelijk Museum Amsterdam and are Composition with Yellow , Red , Black , Blue , and Gray preserved in
Stedelijk Museum Amsterdam
action filter_type
action intersection
action find
entity Nan Hoover
relation exhibition history
action find
entity Composition with Yellow, Red, Black, Blue, and Gray
relation collection
type collection
{'AND': [['Nan Hoover', 'exhibition history', {'concept': 'collection'}], ['Composition with Yellow, Red, Black, Blue, and Gray', 'collection', {'concept': 'collection'}]]}
SELECT DISTINCT ?m WHERE { resource:Composition_with_Yellow,_Red,_Black,_Blue,_and_Gray property:collection ?m . resource:Nan_Hoover property:exhibition_history ?m . ?m rdf:type ontology:collection }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q924335 Q55
P17
Q15617994
USER
Does that collection belong to Netherlands ?
(Q924335,P17,Q55)
action is_in
entity Q55
action find
entity Q924335
relation P17
['Q924335', 'P17', 'Q55']
ASK WHERE { resource:Q924335 property:P17 resource:Q55 }
Stedelijk Museum Amsterdam Netherlands
action is_in
entity Netherlands
action find
entity Stedelijk Museum Amsterdam
relation country
['Stedelijk Museum Amsterdam', 'country', 'Netherlands']
ASK WHERE { resource:Stedelijk_Museum_Amsterdam property:country resource:Netherlands }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q924335,P17,Q55)
action is_in
entity Q55
action find
entity Q924335
relation P17
[ANSWER]
['Q924335', 'P17', 'Q55']
ASK WHERE { resource:Q924335 property:P17 resource:Q55 }
Yes
action is_in
entity Netherlands
action find
entity Stedelijk Museum Amsterdam
relation country
['Stedelijk Museum Amsterdam', 'country', 'Netherlands']
ASK WHERE { resource:Stedelijk_Museum_Amsterdam property:country resource:Netherlands }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q61065
P366
Q349 Q2235308 Q1875621
USER
Which sports are recognized as the main use of less number of ship types and aircraft classes than water sport ?
(c(Q2235308)|c(Q1875621),P366,c(Q349))
action less
action union
action find_reverse_tuple_counts
relation P366
type Q349
type Q2235308
action find_reverse_tuple_counts
relation P366
type Q349
type Q1875621
action count
action filter_multi_types
action find_reverse
entity Q61065
relation P366
type Q2235308
type Q1875621
[[{'concept': 'Q2235308'}, {'concept': 'Q1875621'}], 'P366', {'concept': 'Q349'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?o ) ?c WHERE { VALUES ( ?z ) { ( ontology:Q2235308 ) ( ontology:Q1875621 ) } . ?a rdf:type ?z } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?h ) WHERE { { ?g rdf:type ?b . VALUES ( ?b ) { ( ontology:Q2235308 ) ( ontology:Q1875621 ) } } . ?g property:P366 resource:Q61065 } } . FILTER ( ?o < ?h ) }
water sport
action less
action union
action find_reverse_tuple_counts
relation use
type sport
type ship type
action find_reverse_tuple_counts
relation use
type sport
type aircraft class
action count
action filter_multi_types
action find_reverse
entity water sport
relation use
type ship type
type aircraft class
[[{'concept': 'ship type'}, {'concept': 'aircraft class'}], 'use', {'concept': 'sport'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?o ) ?c WHERE { VALUES ( ?z ) { ( ontology:ship_type ) ( ontology:aircraft_class ) } . ?a rdf:type ?z } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?h ) WHERE { { ?g rdf:type ?b . VALUES ( ?b ) { ( ontology:ship_type ) ( ontology:aircraft_class ) } } . ?g property:use resource:water_sport } } . FILTER ( ?o < ?h ) }
[]
sport ship type aircraft class
Q206763 Q8418 Q183018
SYSTEM
floorball, handball, bandy
Q7856 Q5372 Q8418 Q1734 Q206989 Q14300548 Q183018 Q36908 Q500050 Q108429 Q624161 Q1345388 Q177275 Q206763 Q2736 Q847 Q41466 Q22857 Q1194269 Q41323 Q7291
(c(Q2235308)|c(Q1875621),P366,c(Q349))
action less
action union
action find_reverse_tuple_counts
relation P366
type Q349
type Q2235308
action find_reverse_tuple_counts
relation P366
type Q349
type Q1875621
action count
action filter_multi_types
action find_reverse
entity Q61065
relation P366
type Q2235308
type Q1875621
[ANSWERS] are recognized as the main use of less number of ship types and aircraft classes than water sport
[[{'concept': 'Q2235308'}, {'concept': 'Q1875621'}], 'P366', {'concept': 'Q349'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?o ) ?c WHERE { VALUES ( ?z ) { ( ontology:Q2235308 ) ( ontology:Q1875621 ) } . ?a rdf:type ?z } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?h ) WHERE { { ?g rdf:type ?b . VALUES ( ?b ) { ( ontology:Q2235308 ) ( ontology:Q1875621 ) } } . ?g property:P366 resource:Q61065 } } . FILTER ( ?o < ?h ) }
rallying basketball handball volleyball shooting sport skating bandy mountaineering cross country running archery gliding greyhound racing bobsleigh floorball association football tennis ice hockey climbing harness racing American football badminton
Floorball, handball and bandy are recognized as the main use of less number of ship types and aircraft classes than water sport
floorball handball bandy
action less
action union
action find_reverse_tuple_counts
relation use
type sport
type ship type
action find_reverse_tuple_counts
relation use
type sport
type aircraft class
action count
action filter_multi_types
action find_reverse
entity water sport
relation use
type ship type
type aircraft class
[[{'concept': 'ship type'}, {'concept': 'aircraft class'}], 'use', {'concept': 'sport'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?o ) ?c WHERE { VALUES ( ?z ) { ( ontology:ship_type ) ( ontology:aircraft_class ) } . ?a rdf:type ?z } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?h ) WHERE { { ?g rdf:type ?b . VALUES ( ?b ) { ( ontology:ship_type ) ( ontology:aircraft_class ) } } . ?g property:use resource:water_sport } } . FILTER ( ?o < ?h ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q1875777
P366
Q349 Q2235308 Q1875621
USER
And how about air racing?
(c(Q2235308)|c(Q1875621),P366,c(Q349))
action less
action union
action find_reverse_tuple_counts
relation P366
type Q349
type Q2235308
action find_reverse_tuple_counts
relation P366
type Q349
type Q1875621
action count
action filter_multi_types
action find_reverse
entity Q1875777
relation P366
type Q2235308
type Q1875621
[[{'concept': 'Q2235308'}, {'concept': 'Q1875621'}], 'P366', {'concept': 'Q349'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?h ) WHERE { ?t property:P366 resource:Q1875777 . { { ?t rdf:type ontology:Q2235308 } UNION { ?t rdf:type ontology:Q1875621 } } } } . FILTER ( ?x < ?h ) . { SELECT DISTINCT ( COUNT ( ?p ) AS ?x ) ?g WHERE { { ?p property:P366 ?g . ?g rdf:type ontology:Q349 . ?p rdf:type ontology:Q2235308 } UNION { ?p property:P366 ?g . ?g rdf:type ontology:Q349 . ?p rdf:type ontology:Q1875621 } } GROUP BY ?g } }
air racing
action less
action union
action find_reverse_tuple_counts
relation use
type sport
type ship type
action find_reverse_tuple_counts
relation use
type sport
type aircraft class
action count
action filter_multi_types
action find_reverse
entity air racing
relation use
type ship type
type aircraft class
[[{'concept': 'ship type'}, {'concept': 'aircraft class'}], 'use', {'concept': 'sport'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?h ) WHERE { ?t property:use resource:air_racing . { { ?t rdf:type ontology:ship_type } UNION { ?t rdf:type ontology:aircraft_class } } } } . FILTER ( ?x < ?h ) . { SELECT DISTINCT ( COUNT ( ?p ) AS ?x ) ?g WHERE { { ?p property:use ?g . ?g rdf:type ontology:sport . ?p rdf:type ontology:ship_type } UNION { ?p property:use ?g . ?g rdf:type ontology:sport . ?p rdf:type ontology:aircraft_class } } GROUP BY ?g } }
[]
sport ship type aircraft class
Q206763 Q8418 Q183018
SYSTEM
floorball, handball, bandy
Q7856 Q5372 Q8418 Q1734 Q206989 Q14300548 Q183018 Q36908 Q500050 Q108429 Q624161 Q1345388 Q177275 Q206763 Q2736 Q61065 Q847 Q41466 Q22857 Q1194269 Q41323 Q7291
(c(Q2235308)|c(Q1875621),P366,c(Q349))
action less
action union
action find_reverse_tuple_counts
relation P366
type Q349
type Q2235308
action find_reverse_tuple_counts
relation P366
type Q349
type Q1875621
action count
action filter_multi_types
action find_reverse
entity Q1875777
relation P366
type Q2235308
type Q1875621
[ANSWERS]
[[{'concept': 'Q2235308'}, {'concept': 'Q1875621'}], 'P366', {'concept': 'Q349'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?h ) WHERE { ?t property:P366 resource:Q1875777 . { { ?t rdf:type ontology:Q2235308 } UNION { ?t rdf:type ontology:Q1875621 } } } } . FILTER ( ?x < ?h ) . { SELECT DISTINCT ( COUNT ( ?p ) AS ?x ) ?g WHERE { { ?p property:P366 ?g . ?g rdf:type ontology:Q349 . ?p rdf:type ontology:Q2235308 } UNION { ?p property:P366 ?g . ?g rdf:type ontology:Q349 . ?p rdf:type ontology:Q1875621 } } GROUP BY ?g } }
rallying basketball handball volleyball shooting sport skating bandy mountaineering cross country running archery gliding greyhound racing bobsleigh floorball association football water sport tennis ice hockey climbing harness racing American football badminton
floorball handball bandy
action less
action union
action find_reverse_tuple_counts
relation use
type sport
type ship type
action find_reverse_tuple_counts
relation use
type sport
type aircraft class
action count
action filter_multi_types
action find_reverse
entity air racing
relation use
type ship type
type aircraft class
[[{'concept': 'ship type'}, {'concept': 'aircraft class'}], 'use', {'concept': 'sport'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?h ) WHERE { ?t property:use resource:air_racing . { { ?t rdf:type ontology:ship_type } UNION { ?t rdf:type ontology:aircraft_class } } } } . FILTER ( ?x < ?h ) . { SELECT DISTINCT ( COUNT ( ?p ) AS ?x ) ?g WHERE { { ?p property:use ?g . ?g rdf:type ontology:sport . ?p rdf:type ontology:ship_type } UNION { ?p property:use ?g . ?g rdf:type ontology:sport . ?p rdf:type ontology:aircraft_class } } GROUP BY ?g } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q183018
P495
Q1496967
USER
Where did that sport originate ?
(Q183018,P495,c(Q1496967))
action filter_type
action find
entity Q183018
relation P495
type Q1496967
['Q183018', 'P495', {'concept': 'Q1496967'}]
SELECT DISTINCT ?w WHERE { resource:Q183018 property:P495 ?w . ?w rdf:type ontology:Q1496967 }
bandy
action filter_type
action find
entity bandy
relation country of origin
type territorial entity
['bandy', 'country of origin', {'concept': 'territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:bandy property:country_of_origin ?w . ?w rdf:type ontology:territorial_entity }
[]
territorial entity
Clarification for simple ques.
Q8418
SYSTEM
Did you mean handball ?
Q206763 Q8418 Q183018
(Q206763,P495,c(Q1496967)) (Q8418,P495,c(Q1496967)) (Q183018,P495,c(Q1496967))
[ANSWER]
['Q206763', 'P495', {'concept': 'Q1496967'}] ['Q8418', 'P495', {'concept': 'Q1496967'}] ['Q183018', 'P495', {'concept': 'Q1496967'}]
SELECT DISTINCT ?w WHERE { resource:Q183018 property:P495 ?w . ?w rdf:type ontology:Q1496967 }
floorball handball bandy
Did you mean handball ?
handball
['floorball', 'country of origin', {'concept': 'territorial entity'}] ['handball', 'country of origin', {'concept': 'territorial entity'}] ['bandy', 'country of origin', {'concept': 'territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:bandy property:country_of_origin ?w . ?w rdf:type ontology:territorial_entity }
[]
Simple Question (Coreferenced)
USER
No, I meant bandy. Could you tell me the answer for that?
(Q183018,P495,c(Q1496967))
Q183018
['Q183018', 'P495', {'concept': 'Q1496967'}]
['bandy', 'country of origin', {'concept': 'territorial entity'}]
[]
Q21
SYSTEM
England
Q21
(Q183018,P495,c(Q1496967))
action filter_type
action find
entity Q183018
relation P495
type Q1496967
That sport originated in [ANSWER]
['Q183018', 'P495', {'concept': 'Q1496967'}]
SELECT DISTINCT ?w WHERE { resource:Q183018 property:P495 ?w . ?w rdf:type ontology:Q1496967 }
England
That sport originated in England
England
action filter_type
action find
entity bandy
relation country of origin
type territorial entity
['bandy', 'country of origin', {'concept': 'territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:bandy property:country_of_origin ?w . ?w rdf:type ontology:territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P127
Q163740 Q2668072
USER
How many nonprofit organizations owned around 1 collection ?
(c(Q2668072),P127,c(Q163740))
action count
action approx
action find_reverse_tuple_counts
relation P127
type Q163740
type Q2668072
value 1
[{'concept': 'Q2668072'}, 'P127', {'concept': 'Q163740'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?c ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?t ) AS ?l ) WHERE { ?t property:P127 ?b . ?b rdf:type ontology:Q163740 . ?t rdf:type ontology:Q2668072 } GROUP BY ?b } . FILTER ( ?l = 1 ) }
action count
action approx
action find_reverse_tuple_counts
relation owned by
type nonprofit organization
type collection
value 1
[{'concept': 'collection'}, 'owned by', {'concept': 'nonprofit organization'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?c ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?t ) AS ?l ) WHERE { ?t property:owned_by ?b . ?b rdf:type ontology:nonprofit_organization . ?t rdf:type ontology:collection } GROUP BY ?b } . FILTER ( ?l = 1 ) }
[]
nonprofit organization collection
SYSTEM
6
Q930291 Q333886 Q13371 Q158085 Q12565 Q3113166
(c(Q2668072),P127,c(Q163740))
action count
action approx
action find_reverse_tuple_counts
relation P127
type Q163740
type Q2668072
value 1
[ANSWER]
[{'concept': 'Q2668072'}, 'P127', {'concept': 'Q163740'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?c ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?t ) AS ?l ) WHERE { ?t property:P127 ?b . ?b rdf:type ontology:Q163740 . ?t rdf:type ontology:Q2668072 } GROUP BY ?b } . FILTER ( ?l = 1 ) }
Willamette University Georgetown University Harvard University Max Planck Society Universal Esperanto Association Graduate Theological Union
6
action count
action approx
action find_reverse_tuple_counts
relation owned by
type nonprofit organization
type collection
value 1
[{'concept': 'collection'}, 'owned by', {'concept': 'nonprofit organization'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?c ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?t ) AS ?l ) WHERE { ?t property:owned_by ?b . ?b rdf:type ontology:nonprofit_organization . ?t rdf:type ontology:collection } GROUP BY ?b } . FILTER ( ?l = 1 ) }
[]