Simple Question (Direct)
Simple Question
Q374620
P54
Q1194951
USER
Which national sports team is John Rankin a member of ?
(Q374620,P54,c(Q1194951))
action filter_type
action find
entity Q374620
relation P54
type Q1194951
['Q374620', 'P54', {'concept': 'Q1194951'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q1194951 . resource:Q374620 property:P54 ?d }
John Rankin
action filter_type
action find
entity John Rankin
relation member of sports team
type national sports team
['John Rankin', 'member of sports team', {'concept': 'national sports team'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:national_sports_team . resource:John_Rankin property:member_of_sports_team ?d }
[]
national sports team
Q4127960
SYSTEM
Scotland B national football team
Q4127960
(Q374620,P54,c(Q1194951))
action filter_type
action find
entity Q374620
relation P54
type Q1194951
The [ANSWER] is John Rankin a member of
['Q374620', 'P54', {'concept': 'Q1194951'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q1194951 . resource:Q374620 property:P54 ?d }
Scotland B national football team
The Scotland B national football team is John Rankin a member of
Scotland B national football team
action filter_type
action find
entity John Rankin
relation member of sports team
type national sports team
['John Rankin', 'member of sports team', {'concept': 'national sports team'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:national_sports_team . resource:John_Rankin property:member_of_sports_team ?d }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q374620
P641
Q349
USER
What did John Rankin participate in ?
(Q374620,P641,c(Q349))
action filter_type
action find
entity Q374620
relation P641
type Q349
['Q374620', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?w WHERE { resource:Q374620 property:P641 ?w . ?w rdf:type ontology:Q349 }
John Rankin
action filter_type
action find
entity John Rankin
relation sport
type sport
['John Rankin', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?w WHERE { resource:John_Rankin property:sport ?w . ?w rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q374620,P641,c(Q349))
action filter_type
action find
entity Q374620
relation P641
type Q349
John Rankin participated in [ANSWER]
['Q374620', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?w WHERE { resource:Q374620 property:P641 ?w . ?w rdf:type ontology:Q349 }
association football
John Rankin participated in association football
association football
action filter_type
action find
entity John Rankin
relation sport
type sport
['John Rankin', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?w WHERE { resource:John_Rankin property:sport ?w . ?w rdf:type ontology:sport }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation|Incomplete
Q10845868 Q374620
P641
Q349
USER
Or 2012 European Women's Team Badminton Championships?
OR((Q374620,P641,c(Q349)), (Q10845868,P641,c(Q349)))
action filter_type
action union
action find
entity Q374620
relation P641
action find
entity Q10845868
relation P641
type Q349
{'OR': [['Q374620', 'P641', {'concept': 'Q349'}], ['Q10845868', 'P641', {'concept': 'Q349'}]]}
SELECT DISTINCT ?a WHERE { { ?k property:P641 ?a . VALUES ( ?k ) { ( resource:Q374620 ) ( resource:Q10845868 ) } } . ?a rdf:type ontology:Q349 }
2012 European Women's Team Badminton Championships John Rankin
action filter_type
action union
action find
entity John Rankin
relation sport
action find
entity 2012 European Women's Team Badminton Championships
relation sport
type sport
{'OR': [['John Rankin', 'sport', {'concept': 'sport'}], ["2012 European Women's Team Badminton Championships", 'sport', {'concept': 'sport'}]]}
SELECT DISTINCT ?a WHERE { { ?k property:sport ?a . VALUES ( ?k ) { ( resource:John_Rankin ) ( resource:2012_European_Women's_Team_Badminton_Championships ) } } . ?a rdf:type ontology:sport }
[]
sport
Q7291 Q2736
SYSTEM
badminton, association football
Q7291 Q2736
OR((Q374620,P641,c(Q349)), (Q10845868,P641,c(Q349)))
action filter_type
action union
action find
entity Q374620
relation P641
action find
entity Q10845868
relation P641
type Q349
[ANSWERS]
{'OR': [['Q374620', 'P641', {'concept': 'Q349'}], ['Q10845868', 'P641', {'concept': 'Q349'}]]}
SELECT DISTINCT ?a WHERE { { ?k property:P641 ?a . VALUES ( ?k ) { ( resource:Q374620 ) ( resource:Q10845868 ) } } . ?a rdf:type ontology:Q349 }
badminton association football
badminton association football
action filter_type
action union
action find
entity John Rankin
relation sport
action find
entity 2012 European Women's Team Badminton Championships
relation sport
type sport
{'OR': [['John Rankin', 'sport', {'concept': 'sport'}], ["2012 European Women's Team Badminton Championships", 'sport', {'concept': 'sport'}]]}
SELECT DISTINCT ?a WHERE { { ?k property:sport ?a . VALUES ( ?k ) { ( resource:John_Rankin ) ( resource:2012_European_Women's_Team_Badminton_Championships ) } } . ?a rdf:type ontology:sport }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q483994
P1303
Q34379 Q502895
USER
Which musical instruments are played by more number of people than Kazoo ?
(c(Q502895),P1303,c(Q34379))
action greater
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q483994
relation P1303
type Q34379
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?p ) WHERE { resource:Q483994 property:P1303 ?t . ?t rdf:type ontology:Q34379 } } . FILTER ( ?n > ?p ) . { SELECT DISTINCT ?f ( COUNT ( ?a ) AS ?n ) WHERE { ?f rdf:type ontology:Q34379 . ?a rdf:type ontology:Q502895 . ?a property:P1303 ?f } GROUP BY ?f } }
Kazoo
action greater
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity Kazoo
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?p ) WHERE { resource:Kazoo property:instrument ?t . ?t rdf:type ontology:musical_instrument } } . FILTER ( ?n > ?p ) . { SELECT DISTINCT ?f ( COUNT ( ?a ) AS ?n ) WHERE { ?f rdf:type ontology:musical_instrument . ?a rdf:type ontology:common_name . ?a property:instrument ?f } GROUP BY ?f } }
[]
musical instrument common name
Q5994 Q81982 Q80284
SYSTEM
piano, harpsichord, viola
Q80284 Q46185 Q80019 Q2563510 Q5994 Q81982 Q206987 Q189737 Q8338 Q8371 Q8355 Q213461 Q3382191 Q213100 Q626035 Q742180 Q1444 Q220971 Q128309 Q726306 Q1343007 Q11404
(c(Q502895),P1303,c(Q34379))
action greater
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q483994
relation P1303
type Q34379
[ANSWERS] are played by more number of people than Kazoo
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?p ) WHERE { resource:Q483994 property:P1303 ?t . ?t rdf:type ontology:Q34379 } } . FILTER ( ?n > ?p ) . { SELECT DISTINCT ?f ( COUNT ( ?a ) AS ?n ) WHERE { ?f rdf:type ontology:Q34379 . ?a rdf:type ontology:Q502895 . ?a property:P1303 ?f } GROUP BY ?f } }
viola bass guitar double bass steel-string acoustic guitar piano harpsichord vibraphone timpani trumpet cello violin harmonium upright piano tabla glockenspiel viola d'amore organ marimba drum kit erhu electronic keyboard drum
Piano, harpsichord and viola are played by more number of people than Kazoo
piano harpsichord viola
action greater
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity Kazoo
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?p ) WHERE { resource:Kazoo property:instrument ?t . ?t rdf:type ontology:musical_instrument } } . FILTER ( ?n > ?p ) . { SELECT DISTINCT ?f ( COUNT ( ?a ) AS ?n ) WHERE { ?f rdf:type ontology:musical_instrument . ?a rdf:type ontology:common_name . ?a property:instrument ?f } GROUP BY ?f } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q862501
P1303
Q34379 Q502895
USER
And also tell me about ondes Martenot?
(c(Q502895),P1303,c(Q34379))
action greater
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q862501
relation P1303
type Q34379
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?p WHERE { FILTER ( ?x > ?h ) . { SELECT DISTINCT ( COUNT ( ?a ) AS ?h ) WHERE { resource:Q862501 property:P1303 ?a . ?a rdf:type ontology:Q34379 } } . { SELECT DISTINCT ?p ( COUNT ( ?l ) AS ?x ) WHERE { ?l property:P1303 ?p . ?p rdf:type ontology:Q34379 . ?l rdf:type ontology:Q502895 } GROUP BY ?p } }
ondes Martenot
action greater
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity ondes Martenot
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?p WHERE { FILTER ( ?x > ?h ) . { SELECT DISTINCT ( COUNT ( ?a ) AS ?h ) WHERE { resource:ondes_Martenot property:instrument ?a . ?a rdf:type ontology:musical_instrument } } . { SELECT DISTINCT ?p ( COUNT ( ?l ) AS ?x ) WHERE { ?l property:instrument ?p . ?p rdf:type ontology:musical_instrument . ?l rdf:type ontology:common_name } GROUP BY ?p } }
[]
musical instrument common name
Q5994 Q81982 Q80284
SYSTEM
piano, harpsichord, viola
Q80284 Q46185 Q80019 Q2563510 Q5994 Q81982 Q206987 Q189737 Q8338 Q8371 Q8355 Q213461 Q3382191 Q213100 Q626035 Q742180 Q1444 Q220971 Q128309 Q726306 Q1343007 Q11404
(c(Q502895),P1303,c(Q34379))
action greater
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q862501
relation P1303
type Q34379
[ANSWERS]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?p WHERE { FILTER ( ?x > ?h ) . { SELECT DISTINCT ( COUNT ( ?a ) AS ?h ) WHERE { resource:Q862501 property:P1303 ?a . ?a rdf:type ontology:Q34379 } } . { SELECT DISTINCT ?p ( COUNT ( ?l ) AS ?x ) WHERE { ?l property:P1303 ?p . ?p rdf:type ontology:Q34379 . ?l rdf:type ontology:Q502895 } GROUP BY ?p } }
viola bass guitar double bass steel-string acoustic guitar piano harpsichord vibraphone timpani trumpet cello violin harmonium upright piano tabla glockenspiel viola d'amore organ marimba drum kit erhu electronic keyboard drum
piano harpsichord viola
action greater
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity ondes Martenot
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?p WHERE { FILTER ( ?x > ?h ) . { SELECT DISTINCT ( COUNT ( ?a ) AS ?h ) WHERE { resource:ondes_Martenot property:instrument ?a . ?a rdf:type ontology:musical_instrument } } . { SELECT DISTINCT ?p ( COUNT ( ?l ) AS ?x ) WHERE { ?l property:instrument ?p . ?p rdf:type ontology:musical_instrument . ?l rdf:type ontology:common_name } GROUP BY ?p } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q374620
P106
Q12737077
USER
How many occupations are the professions of John Rankin ?
(Q374620,P106,c(Q12737077))
action count
action filter_type
action find
entity Q374620
relation P106
type Q12737077
['Q374620', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?q ) WHERE { ?d rdf:type ontology:Q12737077 . resource:Q374620 property:P106 ?d }
John Rankin
action count
action filter_type
action find
entity John Rankin
relation occupation
type occupation
['John Rankin', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?q ) WHERE { ?d rdf:type ontology:occupation . resource:John_Rankin property:occupation ?d }
[]
occupation
SYSTEM
1
Q937857
(Q374620,P106,c(Q12737077))
action count
action filter_type
action find
entity Q374620
relation P106
type Q12737077
[ANSWER]
['Q374620', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?q ) WHERE { ?d rdf:type ontology:Q12737077 . resource:Q374620 property:P106 ?d }
association football player
1
action count
action filter_type
action find
entity John Rankin
relation occupation
type occupation
['John Rankin', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?q ) WHERE { ?d rdf:type ontology:occupation . resource:John_Rankin property:occupation ?d }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q11388688
Q12737077
USER
And how about Miyako Kojima?
(Q11388688,P106,c(Q12737077))
action count
action filter_type
action find
entity Q11388688
relation P106
type Q12737077
['Q11388688', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?d ) WHERE { resource:Q11388688 property:P106 ?x . ?x rdf:type ontology:Q12737077 }
Miyako Kojima
action count
action filter_type
action find
entity Miyako Kojima
relation occupation
type occupation
['Miyako Kojima', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?d ) WHERE { resource:Miyako_Kojima property:occupation ?x . ?x rdf:type ontology:occupation }
[]
occupation
SYSTEM
1
(Q11388688,P106,c(Q12737077))
action count
action filter_type
action find
entity Q11388688
relation P106
type Q12737077
[ANSWER]
['Q11388688', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?d ) WHERE { resource:Q11388688 property:P106 ?x . ?x rdf:type ontology:Q12737077 }
1
action count
action filter_type
action find
entity Miyako Kojima
relation occupation
type occupation
['Miyako Kojima', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?d ) WHERE { resource:Miyako_Kojima property:occupation ?x . ?x rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q81982
P425
Q12737077
USER
Which occupation does harpsichord belong to ?
(c(Q12737077),P425,Q81982)
action filter_type
action find
entity Q81982
relation P425
type Q12737077
[{'concept': 'Q12737077'}, 'P425', 'Q81982']
SELECT DISTINCT ?y WHERE { resource:Q81982 property:P425 ?y . ?y rdf:type ontology:Q12737077 }
harpsichord
action filter_type
action find
entity harpsichord
relation field of this occupation
type occupation
[{'concept': 'occupation'}, 'field of this occupation', 'harpsichord']
SELECT DISTINCT ?y WHERE { resource:harpsichord property:field_of_this_occupation ?y . ?y rdf:type ontology:occupation }
[]
occupation
Q5371902
SYSTEM
harpsichordist
Q5371902
(c(Q12737077),P425,Q81982)
action filter_type
action find
entity Q81982
relation P425
type Q12737077
Harpsichord belongs to [ANSWER]
[{'concept': 'Q12737077'}, 'P425', 'Q81982']
SELECT DISTINCT ?y WHERE { resource:Q81982 property:P425 ?y . ?y rdf:type ontology:Q12737077 }
harpsichordist
Harpsichord belongs to harpsichordist
harpsichordist
action filter_type
action find
entity harpsichord
relation field of this occupation
type occupation
[{'concept': 'occupation'}, 'field of this occupation', 'harpsichord']
SELECT DISTINCT ?y WHERE { resource:harpsichord property:field_of_this_occupation ?y . ?y rdf:type ontology:occupation }
[]