Simple Question (Direct)
Simple Question
Q16240042
P21
Q290
USER
Which sex does Filip Jagiełło belong to ?
(Q16240042,P21,c(Q290))
action filter_type
action find
entity Q16240042
relation P21
type Q290
['Q16240042', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?e WHERE { resource:Q16240042 property:P21 ?e . ?e rdf:type ontology:Q290 }
Filip Jagiełło
action filter_type
action find
entity Filip Jagiełło
relation gender
type sex
['Filip Jagiełło', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?e WHERE { resource:Filip_Jagiełło property:gender ?e . ?e rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q16240042,P21,c(Q290))
action filter_type
action find
entity Q16240042
relation P21
type Q290
Filip Jagiełło belongs [ANSWER]
['Q16240042', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?e WHERE { resource:Q16240042 property:P21 ?e . ?e rdf:type ontology:Q290 }
male
Filip Jagiełło belongs male
male
action filter_type
action find
entity Filip Jagiełło
relation gender
type sex
['Filip Jagiełło', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?e WHERE { resource:Filip_Jagiełło property:gender ?e . ?e rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q16240042
P641
Q349
USER
What was the sport that Filip Jagiełło was a part of ?
(Q16240042,P641,c(Q349))
action filter_type
action find
entity Q16240042
relation P641
type Q349
['Q16240042', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q349 . resource:Q16240042 property:P641 ?k }
Filip Jagiełło
action filter_type
action find
entity Filip Jagiełło
relation sport
type sport
['Filip Jagiełło', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:sport . resource:Filip_Jagiełło property:sport ?k }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q16240042,P641,c(Q349))
action filter_type
action find
entity Q16240042
relation P641
type Q349
The sport that Filip Jagiełło was a part of was the [ANSWER]
['Q16240042', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q349 . resource:Q16240042 property:P641 ?k }
association football
The sport that Filip Jagiełło was a part of was the association football
association football
action filter_type
action find
entity Filip Jagiełło
relation sport
type sport
['Filip Jagiełło', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:sport . resource:Filip_Jagiełło property:sport ?k }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q1856380
Q349
USER
And how about 1970 European Aquatics Championships?
(Q1856380,P641,c(Q349))
action filter_type
action find
entity Q1856380
relation P641
type Q349
['Q1856380', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?s WHERE { resource:Q1856380 property:P641 ?s . ?s rdf:type ontology:Q349 }
1970 European Aquatics Championships
action filter_type
action find
entity 1970 European Aquatics Championships
relation sport
type sport
['1970 European Aquatics Championships', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?s WHERE { resource:1970_European_Aquatics_Championships property:sport ?s . ?s rdf:type ontology:sport }
[]
sport
Q7707 Q31920
SYSTEM
water polo, swimming
Q7707 Q31920
(Q1856380,P641,c(Q349))
action filter_type
action find
entity Q1856380
relation P641
type Q349
[ANSWERS]
['Q1856380', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?s WHERE { resource:Q1856380 property:P641 ?s . ?s rdf:type ontology:Q349 }
water polo swimming
water polo swimming
action filter_type
action find
entity 1970 European Aquatics Championships
relation sport
type sport
['1970 European Aquatics Championships', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?s WHERE { resource:1970_European_Aquatics_Championships property:sport ?s . ?s rdf:type ontology:sport }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q7856
P366
Q349 Q811979 Q41176
USER
Which sports are considered to be the main utilization of more number of architectural structures or buildings than rallying ?
(c(Q811979)|c(Q41176),P366,c(Q349))
action greater
action union
action find_reverse_tuple_counts
relation P366
type Q349
type Q811979
action find_reverse_tuple_counts
relation P366
type Q349
type Q41176
action count
action filter_multi_types
action find_reverse
entity Q7856
relation P366
type Q811979
type Q41176
[[{'concept': 'Q811979'}, {'concept': 'Q41176'}], 'P366', {'concept': 'Q349'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?i ) ?u WHERE { { ?c property:P366 ?u . ?u rdf:type ontology:Q349 . ?c rdf:type ontology:Q811979 } UNION { ?c property:P366 ?u . ?c rdf:type ontology:Q41176 . ?u rdf:type ontology:Q349 } } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?s ) WHERE { ?q property:P366 resource:Q7856 . { { ?q rdf:type ontology:Q811979 } UNION { ?q rdf:type ontology:Q41176 } } } } . FILTER ( ?i > ?s ) }
rallying
action greater
action union
action find_reverse_tuple_counts
relation use
type sport
type architectural structure
action find_reverse_tuple_counts
relation use
type sport
type building
action count
action filter_multi_types
action find_reverse
entity rallying
relation use
type architectural structure
type building
[[{'concept': 'architectural structure'}, {'concept': 'building'}], 'use', {'concept': 'sport'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?i ) ?u WHERE { { ?c property:use ?u . ?u rdf:type ontology:sport . ?c rdf:type ontology:architectural_structure } UNION { ?c property:use ?u . ?c rdf:type ontology:building . ?u rdf:type ontology:sport } } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?s ) WHERE { ?q property:use resource:rallying . { { ?q rdf:type ontology:architectural_structure } UNION { ?q rdf:type ontology:building } } } } . FILTER ( ?i > ?s ) }
[]
sport architectural structure building
Q206763 Q8418 Q5372
SYSTEM
floorball, handball, basketball
Q5372 Q8418 Q1734 Q624161 Q1345388 Q206763 Q41466
(c(Q811979)|c(Q41176),P366,c(Q349))
action greater
action union
action find_reverse_tuple_counts
relation P366
type Q349
type Q811979
action find_reverse_tuple_counts
relation P366
type Q349
type Q41176
action count
action filter_multi_types
action find_reverse
entity Q7856
relation P366
type Q811979
type Q41176
[ANSWERS] are considered to be the main utilization of more number of architectural structures or buildings than rallying
[[{'concept': 'Q811979'}, {'concept': 'Q41176'}], 'P366', {'concept': 'Q349'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?i ) ?u WHERE { { ?c property:P366 ?u . ?u rdf:type ontology:Q349 . ?c rdf:type ontology:Q811979 } UNION { ?c property:P366 ?u . ?c rdf:type ontology:Q41176 . ?u rdf:type ontology:Q349 } } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?s ) WHERE { ?q property:P366 resource:Q7856 . { { ?q rdf:type ontology:Q811979 } UNION { ?q rdf:type ontology:Q41176 } } } } . FILTER ( ?i > ?s ) }
basketball handball volleyball gliding greyhound racing floorball ice hockey
Floorball, handball and basketball are considered to be the main utilization of more number of architectural structures or buildings than rallying
floorball handball basketball
action greater
action union
action find_reverse_tuple_counts
relation use
type sport
type architectural structure
action find_reverse_tuple_counts
relation use
type sport
type building
action count
action filter_multi_types
action find_reverse
entity rallying
relation use
type architectural structure
type building
[[{'concept': 'architectural structure'}, {'concept': 'building'}], 'use', {'concept': 'sport'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?i ) ?u WHERE { { ?c property:use ?u . ?u rdf:type ontology:sport . ?c rdf:type ontology:architectural_structure } UNION { ?c property:use ?u . ?c rdf:type ontology:building . ?u rdf:type ontology:sport } } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?s ) WHERE { ?q property:use resource:rallying . { { ?q rdf:type ontology:architectural_structure } UNION { ?q rdf:type ontology:building } } } } . FILTER ( ?i > ?s ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q177275
P366
Q349 Q811979 Q41176
USER
And how about bobsleigh?
(c(Q811979)|c(Q41176),P366,c(Q349))
action greater
action union
action find_reverse_tuple_counts
relation P366
type Q349
type Q811979
action find_reverse_tuple_counts
relation P366
type Q349
type Q41176
action count
action filter_multi_types
action find_reverse
entity Q177275
relation P366
type Q811979
type Q41176
[[{'concept': 'Q811979'}, {'concept': 'Q41176'}], 'P366', {'concept': 'Q349'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?p ) AS ?b ) WHERE { { ?p property:P366 ?k . ?k rdf:type ontology:Q349 . ?p rdf:type ontology:Q41176 } UNION { ?p property:P366 ?k . ?p rdf:type ontology:Q811979 . ?k rdf:type ontology:Q349 } } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?u ) WHERE { { ?m rdf:type ?a . VALUES ( ?a ) { ( ontology:Q811979 ) ( ontology:Q41176 ) } } . ?m property:P366 resource:Q177275 } } . FILTER ( ?b > ?u ) }
bobsleigh
action greater
action union
action find_reverse_tuple_counts
relation use
type sport
type architectural structure
action find_reverse_tuple_counts
relation use
type sport
type building
action count
action filter_multi_types
action find_reverse
entity bobsleigh
relation use
type architectural structure
type building
[[{'concept': 'architectural structure'}, {'concept': 'building'}], 'use', {'concept': 'sport'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?p ) AS ?b ) WHERE { { ?p property:use ?k . ?k rdf:type ontology:sport . ?p rdf:type ontology:building } UNION { ?p property:use ?k . ?p rdf:type ontology:architectural_structure . ?k rdf:type ontology:sport } } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?u ) WHERE { { ?m rdf:type ?a . VALUES ( ?a ) { ( ontology:architectural_structure ) ( ontology:building ) } } . ?m property:use resource:bobsleigh } } . FILTER ( ?b > ?u ) }
[]
sport architectural structure building
Q206763 Q8418 Q5372
SYSTEM
floorball, handball, basketball
Q5372 Q8418 Q1734 Q624161 Q1345388 Q206763 Q41466
(c(Q811979)|c(Q41176),P366,c(Q349))
action greater
action union
action find_reverse_tuple_counts
relation P366
type Q349
type Q811979
action find_reverse_tuple_counts
relation P366
type Q349
type Q41176
action count
action filter_multi_types
action find_reverse
entity Q177275
relation P366
type Q811979
type Q41176
[ANSWERS]
[[{'concept': 'Q811979'}, {'concept': 'Q41176'}], 'P366', {'concept': 'Q349'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?p ) AS ?b ) WHERE { { ?p property:P366 ?k . ?k rdf:type ontology:Q349 . ?p rdf:type ontology:Q41176 } UNION { ?p property:P366 ?k . ?p rdf:type ontology:Q811979 . ?k rdf:type ontology:Q349 } } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?u ) WHERE { { ?m rdf:type ?a . VALUES ( ?a ) { ( ontology:Q811979 ) ( ontology:Q41176 ) } } . ?m property:P366 resource:Q177275 } } . FILTER ( ?b > ?u ) }
basketball handball volleyball gliding greyhound racing floorball ice hockey
floorball handball basketball
action greater
action union
action find_reverse_tuple_counts
relation use
type sport
type architectural structure
action find_reverse_tuple_counts
relation use
type sport
type building
action count
action filter_multi_types
action find_reverse
entity bobsleigh
relation use
type architectural structure
type building
[[{'concept': 'architectural structure'}, {'concept': 'building'}], 'use', {'concept': 'sport'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?p ) AS ?b ) WHERE { { ?p property:use ?k . ?k rdf:type ontology:sport . ?p rdf:type ontology:building } UNION { ?p property:use ?k . ?p rdf:type ontology:architectural_structure . ?k rdf:type ontology:sport } } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?u ) WHERE { { ?m rdf:type ?a . VALUES ( ?a ) { ( ontology:architectural_structure ) ( ontology:building ) } } . ?m property:use resource:bobsleigh } } . FILTER ( ?b > ?u ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q8418
P101
Q502895
USER
Which person has field of work as that sport ?
(c(Q502895),P101,Q8418)
action filter_type
action find_reverse
entity Q8418
relation P101
type Q502895
[{'concept': 'Q502895'}, 'P101', 'Q8418']
SELECT DISTINCT ?x WHERE { ?x property:P101 resource:Q8418 . ?x rdf:type ontology:Q502895 }
handball
action filter_type
action find_reverse
entity handball
relation field of work
type common name
[{'concept': 'common name'}, 'field of work', 'handball']
SELECT DISTINCT ?x WHERE { ?x property:field_of_work resource:handball . ?x rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q206763
SYSTEM
Did you mean floorball ?
Q206763 Q8418 Q5372
(c(Q502895),P101,Q206763) (c(Q502895),P101,Q8418) (c(Q502895),P101,Q5372)
[ANSWER]
[{'concept': 'Q502895'}, 'P101', 'Q206763'] [{'concept': 'Q502895'}, 'P101', 'Q8418'] [{'concept': 'Q502895'}, 'P101', 'Q5372']
SELECT DISTINCT ?x WHERE { ?x property:P101 resource:Q8418 . ?x rdf:type ontology:Q502895 }
floorball handball basketball
Did you mean floorball ?
floorball
[{'concept': 'common name'}, 'field of work', 'floorball'] [{'concept': 'common name'}, 'field of work', 'handball'] [{'concept': 'common name'}, 'field of work', 'basketball']
SELECT DISTINCT ?x WHERE { ?x property:field_of_work resource:handball . ?x rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
No, I meant handball. Could you tell me the answer for that?
(c(Q502895),P101,Q8418)
Q8418
[{'concept': 'Q502895'}, 'P101', 'Q8418']
[{'concept': 'common name'}, 'field of work', 'handball']
[]
Q4750474
SYSTEM
Ana Paula Rodrigues
Q4750474
(c(Q502895),P101,Q8418)
action filter_type
action find_reverse
entity Q8418
relation P101
type Q502895
[ANSWER] has field of work as that sport
[{'concept': 'Q502895'}, 'P101', 'Q8418']
SELECT DISTINCT ?x WHERE { ?x property:P101 resource:Q8418 . ?x rdf:type ontology:Q502895 }
Ana Paula Rodrigues
Ana Paula Rodrigues has field of work as that sport
Ana Paula Rodrigues
action filter_type
action find_reverse
entity handball
relation field of work
type common name
[{'concept': 'common name'}, 'field of work', 'handball']
SELECT DISTINCT ?x WHERE { ?x property:field_of_work resource:handball . ?x rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q4750474 Q2727012
P54
Q12973014
USER
Is that person a member of C.F. Os Belenenses ?
(Q4750474,P54,Q2727012)
action is_in
entity Q2727012
action find
entity Q4750474
relation P54
['Q4750474', 'P54', 'Q2727012']
ASK WHERE { resource:Q4750474 property:P54 resource:Q2727012 }
Ana Paula Rodrigues C.F. Os Belenenses
action is_in
entity C.F. Os Belenenses
action find
entity Ana Paula Rodrigues
relation member of sports team
['Ana Paula Rodrigues', 'member of sports team', 'C.F. Os Belenenses']
ASK WHERE { resource:Ana_Paula_Rodrigues property:member_of_sports_team resource:C.F._Os_Belenenses }
[]
sports team
SYSTEM
NO
(Q4750474,P54,Q2727012)
action is_in
entity Q2727012
action find
entity Q4750474
relation P54
[ANSWER]
['Q4750474', 'P54', 'Q2727012']
ASK WHERE { resource:Q4750474 property:P54 resource:Q2727012 }
No
action is_in
entity C.F. Os Belenenses
action find
entity Ana Paula Rodrigues
relation member of sports team
['Ana Paula Rodrigues', 'member of sports team', 'C.F. Os Belenenses']
ASK WHERE { resource:Ana_Paula_Rodrigues property:member_of_sports_team resource:C.F._Os_Belenenses }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q16240042 Q36
P27
Q15617994
USER
Does Filip Jagiełło belong to Poland ?
(Q16240042,P27,Q36)
action is_in
entity Q36
action find
entity Q16240042
relation P27
['Q16240042', 'P27', 'Q36']
ASK WHERE { resource:Q16240042 property:P27 resource:Q36 }
Filip Jagiełło Poland
action is_in
entity Poland
action find
entity Filip Jagiełło
relation country of citizenship
['Filip Jagiełło', 'country of citizenship', 'Poland']
ASK WHERE { resource:Filip_Jagiełło property:country_of_citizenship resource:Poland }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q16240042,P27,Q36)
action is_in
entity Q36
action find
entity Q16240042
relation P27
[ANSWER]
['Q16240042', 'P27', 'Q36']
ASK WHERE { resource:Q16240042 property:P27 resource:Q36 }
Yes
action is_in
entity Poland
action find
entity Filip Jagiełło
relation country of citizenship
['Filip Jagiełło', 'country of citizenship', 'Poland']
ASK WHERE { resource:Filip_Jagiełło property:country_of_citizenship resource:Poland }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q4750474 Q555712 Q81484
P27
Q15617994
USER
Is Ana Paula Rodrigues a native of Hornbek and Walddorfhäslach ?
(Q4750474,P27,Q555712) (Q4750474,P27,Q81484)
action is_in
entity Q4750474
action intersection
action find_reverse
entity Q555712
relation P27
action find_reverse
entity Q81484
relation P27
['Q4750474', 'P27', 'Q555712'] ['Q4750474', 'P27', 'Q81484']
ASK WHERE { resource:Q4750474 property:P27 resource:Q555712 . resource:Q4750474 property:P27 resource:Q81484 }
Ana Paula Rodrigues Hornbek Walddorfhäslach
action is_in
entity Ana Paula Rodrigues
action intersection
action find_reverse
entity Hornbek
relation country of citizenship
action find_reverse
entity Walddorfhäslach
relation country of citizenship
['Ana Paula Rodrigues', 'country of citizenship', 'Hornbek'] ['Ana Paula Rodrigues', 'country of citizenship', 'Walddorfhäslach']
ASK WHERE { resource:Ana_Paula_Rodrigues property:country_of_citizenship resource:Hornbek . resource:Ana_Paula_Rodrigues property:country_of_citizenship resource:Walddorfhäslach }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q4750474,P27,Q555712) (Q4750474,P27,Q81484)
action is_in
entity Q4750474
action intersection
action find_reverse
entity Q555712
relation P27
action find_reverse
entity Q81484
relation P27
[ANSWER]
['Q4750474', 'P27', 'Q555712'] ['Q4750474', 'P27', 'Q81484']
ASK WHERE { resource:Q4750474 property:P27 resource:Q555712 . resource:Q4750474 property:P27 resource:Q81484 }
No
action is_in
entity Ana Paula Rodrigues
action intersection
action find_reverse
entity Hornbek
relation country of citizenship
action find_reverse
entity Walddorfhäslach
relation country of citizenship
['Ana Paula Rodrigues', 'country of citizenship', 'Hornbek'] ['Ana Paula Rodrigues', 'country of citizenship', 'Walddorfhäslach']
ASK WHERE { resource:Ana_Paula_Rodrigues property:country_of_citizenship resource:Hornbek . resource:Ana_Paula_Rodrigues property:country_of_citizenship resource:Walddorfhäslach }
[]