Simple Question (Direct)
Simple Question
Q19594766
P641
Q349
USER
What was the sport that Tony McShane was a part of ?
(Q19594766,P641,c(Q349))
action filter_type
action find
entity Q19594766
relation P641
type Q349
['Q19594766', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?f WHERE { resource:Q19594766 property:P641 ?f . ?f rdf:type ontology:Q349 }
Tony McShane
action filter_type
action find
entity Tony McShane
relation sport
type sport
['Tony McShane', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?f WHERE { resource:Tony_McShane property:sport ?f . ?f rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q19594766,P641,c(Q349))
action filter_type
action find
entity Q19594766
relation P641
type Q349
The sport that Tony McShane was a part of was the [ANSWER]
['Q19594766', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?f WHERE { resource:Q19594766 property:P641 ?f . ?f rdf:type ontology:Q349 }
association football
The sport that Tony McShane was a part of was the association football
association football
action filter_type
action find
entity Tony McShane
relation sport
type sport
['Tony McShane', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?f WHERE { resource:Tony_McShane property:sport ?f . ?f rdf:type ontology:sport }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q19594766
P106
Q12737077
USER
What does Tony McShane do for a living ?
(Q19594766,P106,c(Q12737077))
action filter_type
action find
entity Q19594766
relation P106
type Q12737077
['Q19594766', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?u WHERE { resource:Q19594766 property:P106 ?u . ?u rdf:type ontology:Q12737077 }
Tony McShane
action filter_type
action find
entity Tony McShane
relation occupation
type occupation
['Tony McShane', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?u WHERE { resource:Tony_McShane property:occupation ?u . ?u rdf:type ontology:occupation }
[]
occupation
Q937857
SYSTEM
association football player
Q937857
(Q19594766,P106,c(Q12737077))
action filter_type
action find
entity Q19594766
relation P106
type Q12737077
Tony McShane does an [ANSWER] for a living
['Q19594766', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?u WHERE { resource:Q19594766 property:P106 ?u . ?u rdf:type ontology:Q12737077 }
association football player
Tony McShane does an association football player for a living
association football player
action filter_type
action find
entity Tony McShane
relation occupation
type occupation
['Tony McShane', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?u WHERE { resource:Tony_McShane property:occupation ?u . ?u rdf:type ontology:occupation }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q937857 Q32748
P361
Q874405
USER
How many social groups are association football player or Al-Nusra Front a part of ?
(Q937857,P361,c(Q874405)) (Q32748,P361,c(Q874405))
action count
action union
action filter_type
action find
entity Q937857
relation P361
type Q874405
action filter_type
action find
entity Q32748
relation P361
type Q874405
['Q937857', 'P361', {'concept': 'Q874405'}] ['Q32748', 'P361', {'concept': 'Q874405'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?d ) WHERE { { resource:Q937857 property:P361 ?o . ?o rdf:type ontology:Q874405 } UNION { ?o rdf:type ontology:Q874405 . resource:Q32748 property:P361 ?o } }
association football player Al-Nusra Front
action count
action union
action filter_type
action find
entity association football player
relation part of
type social group
action filter_type
action find
entity Al-Nusra Front
relation part of
type social group
['association football player', 'part of', {'concept': 'social group'}] ['Al-Nusra Front', 'part of', {'concept': 'social group'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?d ) WHERE { { resource:association_football_player property:part_of ?o . ?o rdf:type ontology:social_group } UNION { ?o rdf:type ontology:social_group . resource:Al-Nusra_Front property:part_of ?o } }
[]
social group
SYSTEM
3
Q17512468 Q19691801 Q34490
(Q937857,P361,c(Q874405)) (Q32748,P361,c(Q874405))
action count
action union
action filter_type
action find
entity Q937857
relation P361
type Q874405
action filter_type
action find
entity Q32748
relation P361
type Q874405
[ANSWER]
['Q937857', 'P361', {'concept': 'Q874405'}] ['Q32748', 'P361', {'concept': 'Q874405'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?d ) WHERE { { resource:Q937857 property:P361 ?o . ?o rdf:type ontology:Q874405 } UNION { ?o rdf:type ontology:Q874405 . resource:Q32748 property:P361 ?o } }
Mujahideen Shura Council Army of Conquest al-Qaeda
3
action count
action union
action filter_type
action find
entity association football player
relation part of
type social group
action filter_type
action find
entity Al-Nusra Front
relation part of
type social group
['association football player', 'part of', {'concept': 'social group'}] ['Al-Nusra Front', 'part of', {'concept': 'social group'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?d ) WHERE { { resource:association_football_player property:part_of ?o . ?o rdf:type ontology:social_group } UNION { ?o rdf:type ontology:social_group . resource:Al-Nusra_Front property:part_of ?o } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q19594766
P27
Q15617994
USER
Which administrative territory is the native country of Tony McShane ?
(Q19594766,P27,c(Q15617994))
action filter_type
action find
entity Q19594766
relation P27
type Q15617994
['Q19594766', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?z WHERE { resource:Q19594766 property:P27 ?z . ?z rdf:type ontology:Q15617994 }
Tony McShane
action filter_type
action find
entity Tony McShane
relation country of citizenship
type designation for an administrative territorial entity
['Tony McShane', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { resource:Tony_McShane property:country_of_citizenship ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q145
SYSTEM
United Kingdom
Q145
(Q19594766,P27,c(Q15617994))
action filter_type
action find
entity Q19594766
relation P27
type Q15617994
The [ANSWER] is the native country of Tony McShane
['Q19594766', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?z WHERE { resource:Q19594766 property:P27 ?z . ?z rdf:type ontology:Q15617994 }
United Kingdom
The United Kingdom is the native country of Tony McShane
United Kingdom
action filter_type
action find
entity Tony McShane
relation country of citizenship
type designation for an administrative territorial entity
['Tony McShane', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { resource:Tony_McShane property:country_of_citizenship ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q16989503
Q15617994
USER
And what about Niklas Nylund?
(Q16989503,P27,c(Q15617994))
action filter_type
action find
entity Q16989503
relation P27
type Q15617994
['Q16989503', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?j WHERE { resource:Q16989503 property:P27 ?j . ?j rdf:type ontology:Q15617994 }
Niklas Nylund
action filter_type
action find
entity Niklas Nylund
relation country of citizenship
type designation for an administrative territorial entity
['Niklas Nylund', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:Niklas_Nylund property:country_of_citizenship ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q33
SYSTEM
Finland
Q33
(Q16989503,P27,c(Q15617994))
action filter_type
action find
entity Q16989503
relation P27
type Q15617994
[ANSWER]
['Q16989503', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?j WHERE { resource:Q16989503 property:P27 ?j . ?j rdf:type ontology:Q15617994 }
Finland
Finland
action filter_type
action find
entity Niklas Nylund
relation country of citizenship
type designation for an administrative territorial entity
['Niklas Nylund', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:Niklas_Nylund property:country_of_citizenship ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Indirect
P495
Q15617994 Q201658 Q15416
USER
How many administrative territories did more number of film genres and television programs originate than that administrative territory ?
(c(Q201658)|c(Q15416),P495,c(Q15617994))
action count
action greater
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q201658
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q15416
action count
action filter_multi_types
action find_reverse
entity Q33
relation P495
type Q201658
type Q15416
[[{'concept': 'Q201658'}, {'concept': 'Q15416'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?b ) WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?w ) ?t WHERE { { ?n property:P495 ?t . ?t rdf:type ontology:Q15617994 . ?n rdf:type ontology:Q201658 } UNION { ?n property:P495 ?t . ?t rdf:type ontology:Q15617994 . ?n rdf:type ontology:Q15416 } } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?f ) WHERE { ?y property:P495 resource:Q33 . { { ?y rdf:type ontology:Q201658 } UNION { ?y rdf:type ontology:Q15416 } } } } . FILTER ( ?w > ?f ) }
action count
action greater
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type film genre
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type television program
action count
action filter_multi_types
action find_reverse
entity Finland
relation country of origin
type film genre
type television program
[[{'concept': 'film genre'}, {'concept': 'television program'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?b ) WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?w ) ?t WHERE { { ?n property:country_of_origin ?t . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . ?n rdf:type ontology:film_genre } UNION { ?n property:country_of_origin ?t . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . ?n rdf:type ontology:television_program } } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?f ) WHERE { ?y property:country_of_origin resource:Finland . { { ?y rdf:type ontology:film_genre } UNION { ?y rdf:type ontology:television_program } } } } . FILTER ( ?w > ?f ) }
[]
designation for an administrative territorial entity film genre television program
SYSTEM
20
Q668 Q414 Q142 Q55 Q145 Q148 Q717 Q43 Q155 Q884 Q31 Q30 Q34 Q928 Q38 Q739 Q96 Q17 Q298 Q29
(c(Q201658)|c(Q15416),P495,c(Q15617994))
action count
action greater
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q201658
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q15416
action count
action filter_multi_types
action find_reverse
entity Q33
relation P495
type Q201658
type Q15416
[ANSWER]
[[{'concept': 'Q201658'}, {'concept': 'Q15416'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?b ) WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?w ) ?t WHERE { { ?n property:P495 ?t . ?t rdf:type ontology:Q15617994 . ?n rdf:type ontology:Q201658 } UNION { ?n property:P495 ?t . ?t rdf:type ontology:Q15617994 . ?n rdf:type ontology:Q15416 } } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?f ) WHERE { ?y property:P495 resource:Q33 . { { ?y rdf:type ontology:Q201658 } UNION { ?y rdf:type ontology:Q15416 } } } } . FILTER ( ?w > ?f ) }
India Argentina France Netherlands United Kingdom People's Republic of China Venezuela Turkey Brazil South Korea Belgium United States of America Sweden Philippines Italy Colombia Mexico Japan Chile Spain
20
action count
action greater
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type film genre
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type television program
action count
action filter_multi_types
action find_reverse
entity Finland
relation country of origin
type film genre
type television program
[[{'concept': 'film genre'}, {'concept': 'television program'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?b ) WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?w ) ?t WHERE { { ?n property:country_of_origin ?t . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . ?n rdf:type ontology:film_genre } UNION { ?n property:country_of_origin ?t . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . ?n rdf:type ontology:television_program } } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?f ) WHERE { ?y property:country_of_origin resource:Finland . { { ?y rdf:type ontology:film_genre } UNION { ?y rdf:type ontology:television_program } } } } . FILTER ( ?w > ?f ) }
[]