Simple Question (Direct)
Simple Question
Q137547
P734
Q82799
USER
Who is associated with Joakim Lindström ?
(Q137547,P734,c(Q82799))
action filter_type
action find
entity Q137547
relation P734
type Q82799
['Q137547', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?f WHERE { resource:Q137547 property:P734 ?f . ?f rdf:type ontology:Q82799 }
Joakim Lindström
action filter_type
action find
entity Joakim Lindström
relation family name
type name
['Joakim Lindström', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?f WHERE { resource:Joakim_Lindström property:family_name ?f . ?f rdf:type ontology:name }
[]
name
Q23305486
SYSTEM
Lindström
Q23305486
(Q137547,P734,c(Q82799))
action filter_type
action find
entity Q137547
relation P734
type Q82799
[ANSWER] is associated with Joakim [ANSWER]
['Q137547', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?f WHERE { resource:Q137547 property:P734 ?f . ?f rdf:type ontology:Q82799 }
Lindström
Lindström is associated with Joakim Lindström
Lindström
action filter_type
action find
entity Joakim Lindström
relation family name
type name
['Joakim Lindström', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?f WHERE { resource:Joakim_Lindström property:family_name ?f . ?f rdf:type ontology:name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q137547
P21
Q290
USER
Which sex does that person have ?
(Q23305486,P21,c(Q290))
action filter_type
action find
entity Q137547
relation P21
type Q290
['Q23305486', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q290 . resource:Q137547 property:P21 ?r }
Joakim Lindström
action filter_type
action find
entity Joakim Lindström
relation gender
type sex
['Lindström', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:sex . resource:Joakim_Lindström property:gender ?r }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q23305486,P21,c(Q290))
action filter_type
action find
entity Q137547
relation P21
type Q290
That person has a [ANSWER]
['Q23305486', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q290 . resource:Q137547 property:P21 ?r }
male
That person has a male
male
action filter_type
action find
entity Joakim Lindström
relation gender
type sex
['Lindström', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:sex . resource:Joakim_Lindström property:gender ?r }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Indirect
P21
Q290 Q502895
USER
Which sexes are the sex of around the same number of people as that sex ?
(c(Q502895),P21,c(Q290))
action approx
action find_reverse_tuple_counts
relation P21
type Q290
type Q502895
action count
action filter_type
action find
entity Q6581097
relation P21
type Q290
[{'concept': 'Q502895'}, 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?i ) AS ?o ) WHERE { ?i property:P21 ?f . ?f rdf:type ontology:Q290 . ?i rdf:type ontology:Q502895 } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?c ) WHERE { resource:Q6581097 property:P21 ?v . ?v rdf:type ontology:Q290 } } . FILTER ( ?o = ?c ) }
action approx
action find_reverse_tuple_counts
relation gender
type sex
type common name
action count
action filter_type
action find
entity male
relation gender
type sex
[{'concept': 'common name'}, 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?i ) AS ?o ) WHERE { ?i property:gender ?f . ?f rdf:type ontology:sex . ?i rdf:type ontology:common_name } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?c ) WHERE { resource:male property:gender ?v . ?v rdf:type ontology:sex } } . FILTER ( ?o = ?c ) }
[]
sex common name
Q6581097
SYSTEM
male
Q6581097
(c(Q502895),P21,c(Q290))
action approx
action find_reverse_tuple_counts
relation P21
type Q290
type Q502895
action count
action filter_type
action find
entity Q6581097
relation P21
type Q290
[ANSWER] is the sex of around the same number of people as that sex
[{'concept': 'Q502895'}, 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?i ) AS ?o ) WHERE { ?i property:P21 ?f . ?f rdf:type ontology:Q290 . ?i rdf:type ontology:Q502895 } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?c ) WHERE { resource:Q6581097 property:P21 ?v . ?v rdf:type ontology:Q290 } } . FILTER ( ?o = ?c ) }
male
Male is the sex of around the same number of people as that sex
male
action approx
action find_reverse_tuple_counts
relation gender
type sex
type common name
action count
action filter_type
action find
entity male
relation gender
type sex
[{'concept': 'common name'}, 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?i ) AS ?o ) WHERE { ?i property:gender ?f . ?f rdf:type ontology:sex . ?i rdf:type ontology:common_name } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?c ) WHERE { resource:male property:gender ?v . ?v rdf:type ontology:sex } } . FILTER ( ?o = ?c ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Indirect
P21
Q290 Q502895
USER
How many sexes are the sex of less number of people than that sex ?
(c(Q502895),P21,c(Q290))
action count
action less
action find_reverse_tuple_counts
relation P21
type Q290
type Q502895
action count
action filter_type
action find_reverse
entity Q6581097
relation P21
type Q502895
[{'concept': 'Q502895'}, 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?b ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?y ) AS ?z ) WHERE { ?y property:P21 ?g . ?g rdf:type ontology:Q290 . ?y rdf:type ontology:Q502895 } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?n ) WHERE { ?t property:P21 resource:Q6581097 . ?t rdf:type ontology:Q502895 } } . FILTER ( ?z < ?n ) }
action count
action less
action find_reverse_tuple_counts
relation gender
type sex
type common name
action count
action filter_type
action find_reverse
entity male
relation gender
type common name
[{'concept': 'common name'}, 'gender', {'concept': 'sex'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?b ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?y ) AS ?z ) WHERE { ?y property:gender ?g . ?g rdf:type ontology:sex . ?y rdf:type ontology:common_name } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?n ) WHERE { ?t property:gender resource:male . ?t rdf:type ontology:common_name } } . FILTER ( ?z < ?n ) }
[]
sex common name
SYSTEM
1
Q6581072
(c(Q502895),P21,c(Q290))
action count
action less
action find_reverse_tuple_counts
relation P21
type Q290
type Q502895
action count
action filter_type
action find_reverse
entity Q6581097
relation P21
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?b ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?y ) AS ?z ) WHERE { ?y property:P21 ?g . ?g rdf:type ontology:Q290 . ?y rdf:type ontology:Q502895 } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?n ) WHERE { ?t property:P21 resource:Q6581097 . ?t rdf:type ontology:Q502895 } } . FILTER ( ?z < ?n ) }
female
1
action count
action less
action find_reverse_tuple_counts
relation gender
type sex
type common name
action count
action filter_type
action find_reverse
entity male
relation gender
type common name
[{'concept': 'common name'}, 'gender', {'concept': 'sex'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?b ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?y ) AS ?z ) WHERE { ?y property:gender ?g . ?g rdf:type ontology:sex . ?y rdf:type ontology:common_name } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?n ) WHERE { ?t property:gender resource:male . ?t rdf:type ontology:common_name } } . FILTER ( ?z < ?n ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q137547
P641
Q349
USER
What did Joakim Lindström participate in ?
(Q137547,P641,c(Q349))
action filter_type
action find
entity Q137547
relation P641
type Q349
['Q137547', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?j WHERE { resource:Q137547 property:P641 ?j . ?j rdf:type ontology:Q349 }
Joakim Lindström
action filter_type
action find
entity Joakim Lindström
relation sport
type sport
['Joakim Lindström', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?j WHERE { resource:Joakim_Lindström property:sport ?j . ?j rdf:type ontology:sport }
[]
sport
Q41466
SYSTEM
ice hockey
Q41466
(Q137547,P641,c(Q349))
action filter_type
action find
entity Q137547
relation P641
type Q349
Joakim Lindström participated in [ANSWER]
['Q137547', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?j WHERE { resource:Q137547 property:P641 ?j . ?j rdf:type ontology:Q349 }
ice hockey
Joakim Lindström participated in ice hockey
ice hockey
action filter_type
action find
entity Joakim Lindström
relation sport
type sport
['Joakim Lindström', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?j WHERE { resource:Joakim_Lindström property:sport ?j . ?j rdf:type ontology:sport }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q16 Q137547
P530 P27
Q15617994
USER
Which administrative territories do Joakim Lindström belong to and holds diplomatic relationship with Canada ?
AND((Q137547,P27,c(Q15617994)), (Q16,P530,c(Q15617994)))
action filter_type
action intersection
action find
entity Q137547
relation P27
action find
entity Q16
relation P530
type Q15617994
{'AND': [['Q137547', 'P27', {'concept': 'Q15617994'}], ['Q16', 'P530', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?h WHERE { resource:Q137547 property:P27 ?h . resource:Q16 property:P530 ?h . ?h rdf:type ontology:Q15617994 }
Canada Joakim Lindström
action filter_type
action intersection
action find
entity Joakim Lindström
relation country of citizenship
action find
entity Canada
relation diplomatic relation
type designation for an administrative territorial entity
{'AND': [['Joakim Lindström', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Canada', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?h WHERE { resource:Joakim_Lindström property:country_of_citizenship ?h . resource:Canada property:diplomatic_relation ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q34
SYSTEM
Sweden
Q34
AND((Q137547,P27,c(Q15617994)), (Q16,P530,c(Q15617994)))
action filter_type
action intersection
action find
entity Q137547
relation P27
action find
entity Q16
relation P530
type Q15617994
Joakim Lindström belong to the [ANSWER]
{'AND': [['Q137547', 'P27', {'concept': 'Q15617994'}], ['Q16', 'P530', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?h WHERE { resource:Q137547 property:P27 ?h . resource:Q16 property:P530 ?h . ?h rdf:type ontology:Q15617994 }
Sweden
Joakim Lindström belong to the Sweden
Sweden
action filter_type
action intersection
action find
entity Joakim Lindström
relation country of citizenship
action find
entity Canada
relation diplomatic relation
type designation for an administrative territorial entity
{'AND': [['Joakim Lindström', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Canada', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?h WHERE { resource:Joakim_Lindström property:country_of_citizenship ?h . resource:Canada property:diplomatic_relation ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q183018
P641
Q349 Q12973014 Q500834
USER
Which sports did less number of sports teams or tournaments participate in than bandy ?
(c(Q12973014)|c(Q500834),P641,c(Q349))
action less
action union
action find_reverse_tuple_counts
relation P641
type Q349
type Q12973014
action find_reverse_tuple_counts
relation P641
type Q349
type Q500834
action count
action filter_multi_types
action find_reverse
entity Q183018
relation P641
type Q12973014
type Q500834
[[{'concept': 'Q12973014'}, {'concept': 'Q500834'}], 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?b ) WHERE { ?l property:P641 resource:Q183018 . { VALUES ( ?x ) { ( ontology:Q12973014 ) ( ontology:Q500834 ) } . ?l rdf:type ?x } } } . FILTER ( ?a < ?b ) . { SELECT DISTINCT ?c ( COUNT ( ?p ) AS ?a ) WHERE { ?p rdf:type ?v . VALUES ( ?v ) { ( ontology:Q12973014 ) ( ontology:Q500834 ) } } GROUP BY ?c } }
bandy
action less
action union
action find_reverse_tuple_counts
relation sport
type sport
type sports team
action find_reverse_tuple_counts
relation sport
type sport
type tournament
action count
action filter_multi_types
action find_reverse
entity bandy
relation sport
type sports team
type tournament
[[{'concept': 'sports team'}, {'concept': 'tournament'}], 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?b ) WHERE { ?l property:sport resource:bandy . { VALUES ( ?x ) { ( ontology:sports_team ) ( ontology:tournament ) } . ?l rdf:type ?x } } } . FILTER ( ?a < ?b ) . { SELECT DISTINCT ?c ( COUNT ( ?p ) AS ?a ) WHERE { ?p rdf:type ?v . VALUES ( ?v ) { ( ontology:sports_team ) ( ontology:tournament ) } } GROUP BY ?c } }
[]
sport sports team tournament
Q809831 Q1295867 Q206763
SYSTEM
BASE jumping, pesäpallo, floorball
Q1109032 Q4543 Q170737 Q114466 Q12100 Q500050 Q2348250 Q3337306 Q193387 Q108429 Q171038 Q191051 Q17163326 Q4808504 Q3844480 Q809831 Q1575010 Q206763 Q133201 Q244700 Q1497658 Q902378 Q1761866 Q192832 Q1148620 Q46241 Q83462 Q3372565 Q208607 Q188966 Q961015 Q328716 Q131359 Q27672886 Q22857 Q657196 Q11420 Q338208 Q738622 Q148636 Q2887217 Q7856 Q599204 Q206989 Q690676 Q31897 Q74542 Q1050588 Q1758324 Q1457676 Q592031 Q1345388 Q102843 Q754586 Q1682809 Q40561 Q42486 Q1295867 Q2483334 Q2922870 Q1143202 Q850256 Q204632 Q627165 Q393808 Q213796 Q1866478 Q182570 Q2302906 Q989473 Q1194269 Q2497700 Q231200 Q990637 Q105674 Q215862 Q212845 Q1358545 Q1757181 Q1145338 Q2250158 Q212434 Q43450 Q6034982 Q12834857 Q61065 Q2284014 Q221635 Q4429020 Q2413978 Q13108218 Q4851143 Q14300548 Q36908 Q1081491 Q483693 Q389654 Q61465 Q185851 Q4245261 Q624161 Q327742 Q271277 Q3177899 Q376040 Q4347112 Q5465793 Q3930 Q797108 Q963312 Q2167372 Q130949 Q2360406 Q20856109 Q16996906 Q213934 Q1078835 Q838781 Q26787631 Q1899731 Q201965 Q943526 Q647559 Q1541373 Q606060 Q1150656 Q1063445 Q134211 Q31920 Q6140386 Q3325635 Q207703 Q2701632 Q1875777 Q1358925 Q667692 Q1622659 Q1421697 Q201252 Q177275 Q32112 Q14405929 Q1129021 Q1199515 Q178678 Q17988507 Q6350707 Q159992 Q3924425 Q3341285 Q192420 Q1784241 Q1188693 Q204686 Q1055193 Q124100 Q2440459 Q429006
(c(Q12973014)|c(Q500834),P641,c(Q349))
action less
action union
action find_reverse_tuple_counts
relation P641
type Q349
type Q12973014
action find_reverse_tuple_counts
relation P641
type Q349
type Q500834
action count
action filter_multi_types
action find_reverse
entity Q183018
relation P641
type Q12973014
type Q500834
[ANSWERS] less number of sports teams or tournaments participated in than bandy
[[{'concept': 'Q12973014'}, {'concept': 'Q500834'}], 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?b ) WHERE { ?l property:P641 resource:Q183018 . { VALUES ( ?x ) { ( ontology:Q12973014 ) ( ontology:Q500834 ) } . ?l rdf:type ?x } } } . FILTER ( ?a < ?b ) . { SELECT DISTINCT ?c ( COUNT ( ?p ) AS ?a ) WHERE { ?p rdf:type ?v . VALUES ( ?v ) { ( ontology:Q12973014 ) ( ontology:Q500834 ) } } GROUP BY ?c } }
college football beach volleyball long jump mixed martial arts fencing cross country running team time trial yachting croquet archery softball windsurfing motorcycle racing snocross rink bandy BASE jumping para rowing floorball squash Ultimate memory sport equestrian sport puroresu paintball Finswimming drag racing weightlifting Kettlebell lifting kung fu contract bridge women's boxing motorcycle sport professional wrestling Flying disc games climbing medley swimming judo giant slalom skiing dancesport Kabaddi women's basketball rallying rallycross shooting sport canoe polo natural track luge para-alpine skiing fistball stock car racing rackets wingsuit flying greyhound racing tug of war racquetball pair skating sumo wrestling pesäpallo Valencian pilota boxe roque shinty Gaelic football Harri-jasotze Dog agility powerlifting American handball discus throw Box lacrosse international draughts harness racing Aizkolaritza netball Broomball running motocross Basque pelota arena football paralympic athletics Adventure racing five-a-side football Olympic sport gymnastics Inline skating strength training water sport Contact sport track cycling competition aerobatics paralympic swimming gymnastics balkline and straight rail skating mountaineering football parkour Greco-Roman wrestling rhythmic gymnastics lacrosse touring car racing gliding relay race Savate bowling wakeboarding strength athletics CP football table tennis jeu de paume Sledge hockey fell running skiing real tennis canoeing Indoor American football canoeing and kayaking Powerchair Football eventing K-1 Frisian handball Nordic combined Castell Goalball sport climbing women's association football wheelchair curling nine-ball polo swimming Kitō-ryū Valencian trinquet rodeo muggle quidditch air racing speed skiing Nordic walking hockey Chilean rodeo pankration bobsleigh boxing high diving super giant slalom skiing formula racing kick boxing women's tennis Kalari surfing combined track and field events cue sports Kart racing korbball mind sport winter sport pallone bodybuilding wheelchair fencing Duathlon
BASE jumping, pesäpallo and floorball less number of sports teams or tournaments participated in than bandy
BASE jumping pesäpallo floorball
action less
action union
action find_reverse_tuple_counts
relation sport
type sport
type sports team
action find_reverse_tuple_counts
relation sport
type sport
type tournament
action count
action filter_multi_types
action find_reverse
entity bandy
relation sport
type sports team
type tournament
[[{'concept': 'sports team'}, {'concept': 'tournament'}], 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?b ) WHERE { ?l property:sport resource:bandy . { VALUES ( ?x ) { ( ontology:sports_team ) ( ontology:tournament ) } . ?l rdf:type ?x } } } . FILTER ( ?a < ?b ) . { SELECT DISTINCT ?c ( COUNT ( ?p ) AS ?a ) WHERE { ?p rdf:type ?v . VALUES ( ?v ) { ( ontology:sports_team ) ( ontology:tournament ) } } GROUP BY ?c } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q192937
P641
Q349 Q12973014 Q500834
USER
And what about korfball?
(c(Q12973014)|c(Q500834),P641,c(Q349))
action less
action union
action find_reverse_tuple_counts
relation P641
type Q349
type Q12973014
action find_reverse_tuple_counts
relation P641
type Q349
type Q500834
action count
action filter_multi_types
action find_reverse
entity Q192937
relation P641
type Q12973014
type Q500834
[[{'concept': 'Q12973014'}, {'concept': 'Q500834'}], 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?q ) ?z WHERE { { ?b property:P641 ?z . ?b rdf:type ontology:Q500834 . ?z rdf:type ontology:Q349 } UNION { ?z rdf:type ontology:Q349 . ?b rdf:type ontology:Q12973014 . ?b property:P641 ?z } } GROUP BY ?z } . FILTER ( ?q < ?a ) . { SELECT DISTINCT ( COUNT ( ?v ) AS ?a ) WHERE { ?v property:P641 resource:Q192937 . { ?v rdf:type ?u . VALUES ( ?u ) { ( ontology:Q12973014 ) ( ontology:Q500834 ) } } } } }
korfball
action less
action union
action find_reverse_tuple_counts
relation sport
type sport
type sports team
action find_reverse_tuple_counts
relation sport
type sport
type tournament
action count
action filter_multi_types
action find_reverse
entity korfball
relation sport
type sports team
type tournament
[[{'concept': 'sports team'}, {'concept': 'tournament'}], 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?q ) ?z WHERE { { ?b property:sport ?z . ?b rdf:type ontology:tournament . ?z rdf:type ontology:sport } UNION { ?z rdf:type ontology:sport . ?b rdf:type ontology:sports_team . ?b property:sport ?z } } GROUP BY ?z } . FILTER ( ?q < ?a ) . { SELECT DISTINCT ( COUNT ( ?v ) AS ?a ) WHERE { ?v property:sport resource:korfball . { ?v rdf:type ?u . VALUES ( ?u ) { ( ontology:sports_team ) ( ontology:tournament ) } } } } }
[]
sport sports team tournament
Q809831 Q1295867 Q206763
SYSTEM
BASE jumping, pesäpallo, floorball
Q1109032 Q4543 Q170737 Q114466 Q12100 Q500050 Q2348250 Q3337306 Q193387 Q108429 Q171038 Q191051 Q17163326 Q4808504 Q3844480 Q809831 Q1575010 Q206763 Q133201 Q244700 Q1497658 Q902378 Q1761866 Q192832 Q1148620 Q46241 Q83462 Q3372565 Q208607 Q188966 Q961015 Q328716 Q131359 Q27672886 Q22857 Q657196 Q11420 Q338208 Q41323 Q738622 Q148636 Q2887217 Q7856 Q599204 Q206989 Q690676 Q31897 Q74542 Q1050588 Q1758324 Q1457676 Q592031 Q1345388 Q102843 Q754586 Q1682809 Q40561 Q42486 Q1295867 Q2483334 Q2922870 Q1143202 Q850256 Q204632 Q627165 Q393808 Q213796 Q1866478 Q182570 Q2302906 Q989473 Q1194269 Q2497700 Q231200 Q990637 Q105674 Q215862 Q212845 Q1358545 Q1757181 Q1145338 Q2250158 Q212434 Q43450 Q6034982 Q12834857 Q61065 Q2284014 Q221635 Q4429020 Q2413978 Q13108218 Q4851143 Q14300548 Q2215841 Q36908 Q1081491 Q483693 Q389654 Q61465 Q185851 Q4245261 Q624161 Q327742 Q271277 Q3177899 Q376040 Q4347112 Q5465793 Q3930 Q797108 Q963312 Q2167372 Q130949 Q535116 Q2360406 Q20856109 Q16996906 Q213934 Q1078835 Q838781 Q26787631 Q1899731 Q201965 Q943526 Q647559 Q1541373 Q606060 Q1150656 Q1063445 Q134211 Q31920 Q6140386 Q3325635 Q207703 Q2701632 Q1875777 Q1358925 Q1748406 Q667692 Q183018 Q1622659 Q1421697 Q201252 Q177275 Q32112 Q14405929 Q1129021 Q1199515 Q178678 Q17988507 Q6350707 Q159992 Q3924425 Q3341285 Q192420 Q1784241 Q1188693 Q204686 Q1055193 Q124100 Q2440459 Q429006
(c(Q12973014)|c(Q500834),P641,c(Q349))
action less
action union
action find_reverse_tuple_counts
relation P641
type Q349
type Q12973014
action find_reverse_tuple_counts
relation P641
type Q349
type Q500834
action count
action filter_multi_types
action find_reverse
entity Q192937
relation P641
type Q12973014
type Q500834
[ANSWERS]
[[{'concept': 'Q12973014'}, {'concept': 'Q500834'}], 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?q ) ?z WHERE { { ?b property:P641 ?z . ?b rdf:type ontology:Q500834 . ?z rdf:type ontology:Q349 } UNION { ?z rdf:type ontology:Q349 . ?b rdf:type ontology:Q12973014 . ?b property:P641 ?z } } GROUP BY ?z } . FILTER ( ?q < ?a ) . { SELECT DISTINCT ( COUNT ( ?v ) AS ?a ) WHERE { ?v property:P641 resource:Q192937 . { ?v rdf:type ?u . VALUES ( ?u ) { ( ontology:Q12973014 ) ( ontology:Q500834 ) } } } } }
college football beach volleyball long jump mixed martial arts fencing cross country running team time trial yachting croquet archery softball windsurfing motorcycle racing snocross rink bandy BASE jumping para rowing floorball squash Ultimate memory sport equestrian sport puroresu paintball Finswimming drag racing weightlifting Kettlebell lifting kung fu contract bridge women's boxing motorcycle sport professional wrestling Flying disc games climbing medley swimming judo giant slalom skiing American football dancesport Kabaddi women's basketball rallying rallycross shooting sport canoe polo natural track luge para-alpine skiing fistball stock car racing rackets wingsuit flying greyhound racing tug of war racquetball pair skating sumo wrestling pesäpallo Valencian pilota boxe roque shinty Gaelic football Harri-jasotze Dog agility powerlifting American handball discus throw Box lacrosse international draughts harness racing Aizkolaritza netball Broomball running motocross Basque pelota arena football paralympic athletics Adventure racing five-a-side football Olympic sport gymnastics Inline skating strength training water sport Contact sport track cycling competition aerobatics paralympic swimming gymnastics balkline and straight rail skating cycle sport mountaineering football parkour Greco-Roman wrestling rhythmic gymnastics lacrosse touring car racing gliding relay race Savate bowling wakeboarding strength athletics CP football table tennis jeu de paume Sledge hockey fell running skiing beach handball real tennis canoeing Indoor American football canoeing and kayaking Powerchair Football eventing K-1 Frisian handball Nordic combined Castell Goalball sport climbing women's association football wheelchair curling nine-ball polo swimming Kitō-ryū Valencian trinquet rodeo muggle quidditch air racing speed skiing roller hockey (quad) Nordic walking bandy hockey Chilean rodeo pankration bobsleigh boxing high diving super giant slalom skiing formula racing kick boxing women's tennis Kalari surfing combined track and field events cue sports Kart racing korbball mind sport winter sport pallone bodybuilding wheelchair fencing Duathlon
BASE jumping pesäpallo floorball
action less
action union
action find_reverse_tuple_counts
relation sport
type sport
type sports team
action find_reverse_tuple_counts
relation sport
type sport
type tournament
action count
action filter_multi_types
action find_reverse
entity korfball
relation sport
type sports team
type tournament
[[{'concept': 'sports team'}, {'concept': 'tournament'}], 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?q ) ?z WHERE { { ?b property:sport ?z . ?b rdf:type ontology:tournament . ?z rdf:type ontology:sport } UNION { ?z rdf:type ontology:sport . ?b rdf:type ontology:sports_team . ?b property:sport ?z } } GROUP BY ?z } . FILTER ( ?q < ?a ) . { SELECT DISTINCT ( COUNT ( ?v ) AS ?a ) WHERE { ?v property:sport resource:korfball . { ?v rdf:type ?u . VALUES ( ?u ) { ( ontology:sports_team ) ( ontology:tournament ) } } } } }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P138
Q11019 Q1150070
USER
How many machines and changes are that sport named after ?
(Q809831,P138,c(Q11019)) (Q809831,P138,c(Q1150070)) (Q809831,P138,c(Q11019)) (Q809831,P138,c(Q1150070)) (Q1295867,P138,c(Q11019)) (Q1295867,P138,c(Q1150070)) (Q206763,P138,c(Q11019)) (Q206763,P138,c(Q1150070))
['Q809831', 'P138', {'concept': 'Q11019'}] ['Q809831', 'P138', {'concept': 'Q1150070'}] ['Q809831', 'P138', {'concept': 'Q11019'}] ['Q809831', 'P138', {'concept': 'Q1150070'}] ['Q1295867', 'P138', {'concept': 'Q11019'}] ['Q1295867', 'P138', {'concept': 'Q1150070'}] ['Q206763', 'P138', {'concept': 'Q11019'}] ['Q206763', 'P138', {'concept': 'Q1150070'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q809831 property:P138 ?z } UNION { resource:Q809831 property:P138 ?y } UNION { resource:Q809831 property:P138 ?z } UNION { resource:Q809831 property:P138 ?y } UNION { resource:Q1295867 property:P138 ?z } UNION { resource:Q1295867 property:P138 ?y } UNION { resource:Q206763 property:P138 ?z } UNION { resource:Q206763 property:P138 ?y } } . ?z rdf:type ontology:Q1882685 . ?y rdf:type ontology:Q1150070 }
['BASE jumping', 'named after', {'concept': 'machine'}] ['BASE jumping', 'named after', {'concept': 'change'}] ['BASE jumping', 'named after', {'concept': 'machine'}] ['BASE jumping', 'named after', {'concept': 'change'}] ['pesäpallo', 'named after', {'concept': 'machine'}] ['pesäpallo', 'named after', {'concept': 'change'}] ['floorball', 'named after', {'concept': 'machine'}] ['floorball', 'named after', {'concept': 'change'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:BASE_jumping property:named_after ?z } UNION { resource:BASE_jumping property:named_after ?y } UNION { resource:BASE_jumping property:named_after ?z } UNION { resource:BASE_jumping property:named_after ?y } UNION { resource:pesäpallo property:named_after ?z } UNION { resource:pesäpallo property:named_after ?y } UNION { resource:floorball property:named_after ?z } UNION { resource:floorball property:named_after ?y } } . ?z rdf:type ontology:machine . ?y rdf:type ontology:change }
[]
machine change
Quantitative|Count|Mult. entity type|Clarification
Q206763
SYSTEM
Did you mean floorball ?
[ANSWER]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q809831 property:P138 ?z } UNION { resource:Q809831 property:P138 ?y } UNION { resource:Q809831 property:P138 ?z } UNION { resource:Q809831 property:P138 ?y } UNION { resource:Q1295867 property:P138 ?z } UNION { resource:Q1295867 property:P138 ?y } UNION { resource:Q206763 property:P138 ?z } UNION { resource:Q206763 property:P138 ?y } } . ?z rdf:type ontology:Q1882685 . ?y rdf:type ontology:Q1150070 }
Did you mean floorball ?
floorball
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:BASE_jumping property:named_after ?z } UNION { resource:BASE_jumping property:named_after ?y } UNION { resource:BASE_jumping property:named_after ?z } UNION { resource:BASE_jumping property:named_after ?y } UNION { resource:pesäpallo property:named_after ?z } UNION { resource:pesäpallo property:named_after ?y } UNION { resource:floorball property:named_after ?z } UNION { resource:floorball property:named_after ?y } } . ?z rdf:type ontology:machine . ?y rdf:type ontology:change }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant BASE jumping. Could you tell me the answer for that?
(Q809831,P138,c(Q11019)) (Q809831,P138,c(Q1150070)) (Q809831,P138,c(Q11019)) (Q809831,P138,c(Q1150070)) (Q1295867,P138,c(Q11019)) (Q1295867,P138,c(Q1150070)) (Q206763,P138,c(Q11019)) (Q206763,P138,c(Q1150070))
Q809831
['Q809831', 'P138', {'concept': 'Q11019'}] ['Q809831', 'P138', {'concept': 'Q1150070'}] ['Q809831', 'P138', {'concept': 'Q11019'}] ['Q809831', 'P138', {'concept': 'Q1150070'}] ['Q1295867', 'P138', {'concept': 'Q11019'}] ['Q1295867', 'P138', {'concept': 'Q1150070'}] ['Q206763', 'P138', {'concept': 'Q11019'}] ['Q206763', 'P138', {'concept': 'Q1150070'}]
['BASE jumping', 'named after', {'concept': 'machine'}] ['BASE jumping', 'named after', {'concept': 'change'}] ['BASE jumping', 'named after', {'concept': 'machine'}] ['BASE jumping', 'named after', {'concept': 'change'}] ['pesäpallo', 'named after', {'concept': 'machine'}] ['pesäpallo', 'named after', {'concept': 'change'}] ['floorball', 'named after', {'concept': 'machine'}] ['floorball', 'named after', {'concept': 'change'}]
[]
SYSTEM
1 machines and 1 changes
Q131214 Q1151752
(Q809831,P138,c(Q11019)) (Q809831,P138,c(Q1150070)) (Q809831,P138,c(Q11019)) (Q809831,P138,c(Q1150070)) (Q1295867,P138,c(Q11019)) (Q1295867,P138,c(Q1150070)) (Q206763,P138,c(Q11019)) (Q206763,P138,c(Q1150070))
[ANSWER]
['Q809831', 'P138', {'concept': 'Q11019'}] ['Q809831', 'P138', {'concept': 'Q1150070'}] ['Q809831', 'P138', {'concept': 'Q11019'}] ['Q809831', 'P138', {'concept': 'Q1150070'}] ['Q1295867', 'P138', {'concept': 'Q11019'}] ['Q1295867', 'P138', {'concept': 'Q1150070'}] ['Q206763', 'P138', {'concept': 'Q11019'}] ['Q206763', 'P138', {'concept': 'Q1150070'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q809831 property:P138 ?z } UNION { resource:Q809831 property:P138 ?y } UNION { resource:Q809831 property:P138 ?z } UNION { resource:Q809831 property:P138 ?y } UNION { resource:Q1295867 property:P138 ?z } UNION { resource:Q1295867 property:P138 ?y } UNION { resource:Q206763 property:P138 ?z } UNION { resource:Q206763 property:P138 ?y } } . ?z rdf:type ontology:Q1882685 . ?y rdf:type ontology:Q1150070 }
antenna jumping
1 machines and 1 changes
['BASE jumping', 'named after', {'concept': 'machine'}] ['BASE jumping', 'named after', {'concept': 'change'}] ['BASE jumping', 'named after', {'concept': 'machine'}] ['BASE jumping', 'named after', {'concept': 'change'}] ['pesäpallo', 'named after', {'concept': 'machine'}] ['pesäpallo', 'named after', {'concept': 'change'}] ['floorball', 'named after', {'concept': 'machine'}] ['floorball', 'named after', {'concept': 'change'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:BASE_jumping property:named_after ?z } UNION { resource:BASE_jumping property:named_after ?y } UNION { resource:BASE_jumping property:named_after ?z } UNION { resource:BASE_jumping property:named_after ?y } UNION { resource:pesäpallo property:named_after ?z } UNION { resource:pesäpallo property:named_after ?y } UNION { resource:floorball property:named_after ?z } UNION { resource:floorball property:named_after ?y } } . ?z rdf:type ontology:machine . ?y rdf:type ontology:change }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1295867
P425
Q151885
USER
Which concept has pesäpallo as thier field of occupation ?
(c(Q151885),P425,Q1295867)
action filter_type
action find_reverse
entity Q1295867
relation P425
type Q151885
[{'concept': 'Q151885'}, 'P425', 'Q1295867']
SELECT DISTINCT ?s WHERE { ?s property:P425 resource:Q1295867 . ?s rdf:type ontology:Q151885 }
pesäpallo
action filter_type
action find_reverse
entity pesäpallo
relation field of this occupation
type concept
[{'concept': 'concept'}, 'field of this occupation', 'pesäpallo']
SELECT DISTINCT ?s WHERE { ?s property:field_of_this_occupation resource:pesäpallo . ?s rdf:type ontology:concept }
[]
concept
Q18667447
SYSTEM
pesäpallo player
Q18667447
(c(Q151885),P425,Q1295867)
action filter_type
action find_reverse
entity Q1295867
relation P425
type Q151885
[ANSWER] has pesäpallo as thier field of occupation
[{'concept': 'Q151885'}, 'P425', 'Q1295867']
SELECT DISTINCT ?s WHERE { ?s property:P425 resource:Q1295867 . ?s rdf:type ontology:Q151885 }
pesäpallo player
Pesäpallo player has pesäpallo as thier field of occupation
pesäpallo player
action filter_type
action find_reverse
entity pesäpallo
relation field of this occupation
type concept
[{'concept': 'concept'}, 'field of this occupation', 'pesäpallo']
SELECT DISTINCT ?s WHERE { ?s property:field_of_this_occupation resource:pesäpallo . ?s rdf:type ontology:concept }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation|Incomplete
Q18617006 Q1295867
P425
Q151885
USER
Or dollmaking?
OR((c(Q151885),P425,Q1295867), (c(Q151885),P425,Q18617006))
action filter_type
action union
action find_reverse
entity Q1295867
relation P425
action find_reverse
entity Q18617006
relation P425
type Q151885
{'OR': [[{'concept': 'Q151885'}, 'P425', 'Q1295867'], [{'concept': 'Q151885'}, 'P425', 'Q18617006']]}
SELECT DISTINCT ?r WHERE { { ?r property:P425 ?g . VALUES ( ?g ) { ( resource:Q1295867 ) ( resource:Q18617006 ) } } . ?r rdf:type ontology:Q151885 }
dollmaking pesäpallo
action filter_type
action union
action find_reverse
entity pesäpallo
relation field of this occupation
action find_reverse
entity dollmaking
relation field of this occupation
type concept
{'OR': [[{'concept': 'concept'}, 'field of this occupation', 'pesäpallo'], [{'concept': 'concept'}, 'field of this occupation', 'dollmaking']]}
SELECT DISTINCT ?r WHERE { { ?r property:field_of_this_occupation ?g . VALUES ( ?g ) { ( resource:pesäpallo ) ( resource:dollmaking ) } } . ?r rdf:type ontology:concept }
[]
concept
Q18617002 Q18667447
SYSTEM
dollmaker, pesäpallo player
Q18617002 Q18667447
OR((c(Q151885),P425,Q1295867), (c(Q151885),P425,Q18617006))
action filter_type
action union
action find_reverse
entity Q1295867
relation P425
action find_reverse
entity Q18617006
relation P425
type Q151885
[ANSWERS]
{'OR': [[{'concept': 'Q151885'}, 'P425', 'Q1295867'], [{'concept': 'Q151885'}, 'P425', 'Q18617006']]}
SELECT DISTINCT ?r WHERE { { ?r property:P425 ?g . VALUES ( ?g ) { ( resource:Q1295867 ) ( resource:Q18617006 ) } } . ?r rdf:type ontology:Q151885 }
dollmaker pesäpallo player
dollmaker pesäpallo player
action filter_type
action union
action find_reverse
entity pesäpallo
relation field of this occupation
action find_reverse
entity dollmaking
relation field of this occupation
type concept
{'OR': [[{'concept': 'concept'}, 'field of this occupation', 'pesäpallo'], [{'concept': 'concept'}, 'field of this occupation', 'dollmaking']]}
SELECT DISTINCT ?r WHERE { { ?r property:field_of_this_occupation ?g . VALUES ( ?g ) { ( resource:pesäpallo ) ( resource:dollmaking ) } } . ?r rdf:type ontology:concept }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q206763
P495
Q15617994
USER
What are the countries of origin of floorball ?
(Q206763,P495,c(Q15617994))
action filter_type
action find
entity Q206763
relation P495
type Q15617994
['Q206763', 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?f WHERE { resource:Q206763 property:P495 ?f . ?f rdf:type ontology:Q15617994 }
floorball
action filter_type
action find
entity floorball
relation country of origin
type designation for an administrative territorial entity
['floorball', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { resource:floorball property:country_of_origin ?f . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q33 Q39 Q34
SYSTEM
Finland, Switzerland, Sweden
Q33 Q39 Q34
(Q206763,P495,c(Q15617994))
action filter_type
action find
entity Q206763
relation P495
type Q15617994
The countries of origin of floorball are [ANSWERS]
['Q206763', 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?f WHERE { resource:Q206763 property:P495 ?f . ?f rdf:type ontology:Q15617994 }
Finland Switzerland Sweden
The countries of origin of floorball are Finland, Switzerland and Sweden
Finland Switzerland Sweden
action filter_type
action find
entity floorball
relation country of origin
type designation for an administrative territorial entity
['floorball', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { resource:floorball property:country_of_origin ?f . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]