Simple Question (Direct)
Simple Question
Q7963402
P641
Q349
USER
What did Wally Johansen participate in ?
(Q7963402,P641,c(Q349))
action filter_type
action find
entity Q7963402
relation P641
type Q349
['Q7963402', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q349 . resource:Q7963402 property:P641 ?o }
Wally Johansen
action filter_type
action find
entity Wally Johansen
relation sport
type sport
['Wally Johansen', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:sport . resource:Wally_Johansen property:sport ?o }
[]
sport
Q5372
SYSTEM
basketball
Q5372
(Q7963402,P641,c(Q349))
action filter_type
action find
entity Q7963402
relation P641
type Q349
Wally Johansen participated in [ANSWER]
['Q7963402', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q349 . resource:Q7963402 property:P641 ?o }
basketball
Wally Johansen participated in basketball
basketball
action filter_type
action find
entity Wally Johansen
relation sport
type sport
['Wally Johansen', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:sport . resource:Wally_Johansen property:sport ?o }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5372
P452
Q16979650
USER
Which sibling group belongs to the industry that sport ?
(c(Q16979650),P452,Q5372)
action filter_type
action find_reverse
entity Q5372
relation P452
type Q16979650
[{'concept': 'Q16979650'}, 'P452', 'Q5372']
SELECT DISTINCT ?z WHERE { ?z property:P452 resource:Q5372 . ?z rdf:type ontology:Q16979650 }
basketball
action filter_type
action find_reverse
entity basketball
relation industry
type sibling group
[{'concept': 'sibling group'}, 'industry', 'basketball']
SELECT DISTINCT ?z WHERE { ?z property:industry resource:basketball . ?z rdf:type ontology:sibling_group }
[]
sibling group
Q7116733
SYSTEM
Ozzie and Daniel Silna
Q7116733
(c(Q16979650),P452,Q5372)
action filter_type
action find_reverse
entity Q5372
relation P452
type Q16979650
[ANSWER] belongs to the industry that sport
[{'concept': 'Q16979650'}, 'P452', 'Q5372']
SELECT DISTINCT ?z WHERE { ?z property:P452 resource:Q5372 . ?z rdf:type ontology:Q16979650 }
Ozzie and Daniel Silna
Ozzie and Daniel Silna belongs to the industry that sport
Ozzie and Daniel Silna
action filter_type
action find_reverse
entity basketball
relation industry
type sibling group
[{'concept': 'sibling group'}, 'industry', 'basketball']
SELECT DISTINCT ?z WHERE { ?z property:industry resource:basketball . ?z rdf:type ontology:sibling_group }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q7116733 Q5599347
P27
Q15617994
USER
Is that sibling group a civilian of Great Humby ?
(Q7116733,P27,Q5599347)
action is_in
entity Q5599347
action find
entity Q7116733
relation P27
['Q7116733', 'P27', 'Q5599347']
ASK WHERE { resource:Q7116733 property:P27 resource:Q5599347 }
Ozzie and Daniel Silna Great Humby
action is_in
entity Great Humby
action find
entity Ozzie and Daniel Silna
relation country of citizenship
['Ozzie and Daniel Silna', 'country of citizenship', 'Great Humby']
ASK WHERE { resource:Ozzie_and_Daniel_Silna property:country_of_citizenship resource:Great_Humby }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q7116733,P27,Q5599347)
action is_in
entity Q5599347
action find
entity Q7116733
relation P27
[ANSWER]
['Q7116733', 'P27', 'Q5599347']
ASK WHERE { resource:Q7116733 property:P27 resource:Q5599347 }
No
action is_in
entity Great Humby
action find
entity Ozzie and Daniel Silna
relation country of citizenship
['Ozzie and Daniel Silna', 'country of citizenship', 'Great Humby']
ASK WHERE { resource:Ozzie_and_Daniel_Silna property:country_of_citizenship resource:Great_Humby }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q1717689 Q7963402
P509
Q2057971
USER
Which health problems were the cause of death of Wally Johansen and Walter Capps ?
AND((Q7963402,P509,c(Q2057971)), (Q1717689,P509,c(Q2057971)))
action filter_type
action intersection
action find
entity Q7963402
relation P509
action find
entity Q1717689
relation P509
type Q2057971
{'AND': [['Q7963402', 'P509', {'concept': 'Q2057971'}], ['Q1717689', 'P509', {'concept': 'Q2057971'}]]}
SELECT DISTINCT ?r WHERE { resource:Q7963402 property:P509 ?r . resource:Q1717689 property:P509 ?r . ?r rdf:type ontology:Q2057971 }
Walter Capps Wally Johansen
action filter_type
action intersection
action find
entity Wally Johansen
relation cause of death
action find
entity Walter Capps
relation cause of death
type health problem
{'AND': [['Wally Johansen', 'cause of death', {'concept': 'health problem'}], ['Walter Capps', 'cause of death', {'concept': 'health problem'}]]}
SELECT DISTINCT ?r WHERE { resource:Wally_Johansen property:cause_of_death ?r . resource:Walter_Capps property:cause_of_death ?r . ?r rdf:type ontology:health_problem }
[]
health problem
Q12152
SYSTEM
myocardial infarction
Q12152
AND((Q7963402,P509,c(Q2057971)), (Q1717689,P509,c(Q2057971)))
action filter_type
action intersection
action find
entity Q7963402
relation P509
action find
entity Q1717689
relation P509
type Q2057971
The [ANSWER] was the cause of death of Wally Johansen and Walter Capps
{'AND': [['Q7963402', 'P509', {'concept': 'Q2057971'}], ['Q1717689', 'P509', {'concept': 'Q2057971'}]]}
SELECT DISTINCT ?r WHERE { resource:Q7963402 property:P509 ?r . resource:Q1717689 property:P509 ?r . ?r rdf:type ontology:Q2057971 }
myocardial infarction
The myocardial infarction was the cause of death of Wally Johansen and Walter Capps
myocardial infarction
action filter_type
action intersection
action find
entity Wally Johansen
relation cause of death
action find
entity Walter Capps
relation cause of death
type health problem
{'AND': [['Wally Johansen', 'cause of death', {'concept': 'health problem'}], ['Walter Capps', 'cause of death', {'concept': 'health problem'}]]}
SELECT DISTINCT ?r WHERE { resource:Wally_Johansen property:cause_of_death ?r . resource:Walter_Capps property:cause_of_death ?r . ?r rdf:type ontology:health_problem }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q12152
P509
Q464980 Q95074
USER
How many exhibitions and fictional characters died from myocardial infarction ?
(c(Q464980),P509,Q12152) (c(Q95074),P509,Q12152)
action count
action union
action filter_type
action find_reverse
entity Q12152
relation P509
type Q464980
action filter_type
action find_reverse
entity Q12152
relation P509
type Q95074
[{'concept': 'Q464980'}, 'P509', 'Q12152'] [{'concept': 'Q95074'}, 'P509', 'Q12152']
SELECT DISTINCT ( COUNT ( ?t ) AS ?q ) WHERE { { ?t property:P509 resource:Q12152 . ?t rdf:type ontology:Q464980 } UNION { ?t property:P509 resource:Q12152 . ?t rdf:type ontology:Q95074 } }
myocardial infarction
action count
action union
action filter_type
action find_reverse
entity myocardial infarction
relation cause of death
type exhibition
action filter_type
action find_reverse
entity myocardial infarction
relation cause of death
type fictional character
[{'concept': 'exhibition'}, 'cause of death', 'myocardial infarction'] [{'concept': 'fictional character'}, 'cause of death', 'myocardial infarction']
SELECT DISTINCT ( COUNT ( ?t ) AS ?q ) WHERE { { ?t property:cause_of_death resource:myocardial_infarction . ?t rdf:type ontology:exhibition } UNION { ?t property:cause_of_death resource:myocardial_infarction . ?t rdf:type ontology:fictional_character } }
[]
exhibition fictional character
SYSTEM
1 exhibitions and 1 fictional characters
Q5137303 Q6377093
(c(Q464980),P509,Q12152) (c(Q95074),P509,Q12152)
action count
action union
action filter_type
action find_reverse
entity Q12152
relation P509
type Q464980
action filter_type
action find_reverse
entity Q12152
relation P509
type Q95074
[ANSWER]
[{'concept': 'Q464980'}, 'P509', 'Q12152'] [{'concept': 'Q95074'}, 'P509', 'Q12152']
SELECT DISTINCT ( COUNT ( ?t ) AS ?q ) WHERE { { ?t property:P509 resource:Q12152 . ?t rdf:type ontology:Q464980 } UNION { ?t property:P509 resource:Q12152 . ?t rdf:type ontology:Q95074 } }
Clóvis Bornay Kathryn Minner
1 exhibitions and 1 fictional characters
action count
action union
action filter_type
action find_reverse
entity myocardial infarction
relation cause of death
type exhibition
action filter_type
action find_reverse
entity myocardial infarction
relation cause of death
type fictional character
[{'concept': 'exhibition'}, 'cause of death', 'myocardial infarction'] [{'concept': 'fictional character'}, 'cause of death', 'myocardial infarction']
SELECT DISTINCT ( COUNT ( ?t ) AS ?q ) WHERE { { ?t property:cause_of_death resource:myocardial_infarction . ?t rdf:type ontology:exhibition } UNION { ?t property:cause_of_death resource:myocardial_infarction . ?t rdf:type ontology:fictional_character } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q12152 Q81938
P2175
Q8386
USER
How many drugs are used for the treatment of myocardial infarction and pain ?
(c(Q8386),P2175,Q12152) (c(Q8386),P2175,Q81938)
action count
action intersection
action filter_type
action find_reverse
entity Q12152
relation P2175
type Q8386
action filter_type
action find_reverse
entity Q81938
relation P2175
type Q8386
[{'concept': 'Q8386'}, 'P2175', 'Q12152'] [{'concept': 'Q8386'}, 'P2175', 'Q81938']
SELECT DISTINCT ( COUNT ( ?v ) AS ?p ) WHERE { ?v property:P2175 resource:Q12152 . ?v rdf:type ontology:Q8386 . ?v rdf:type ontology:Q8386 . ?v property:P2175 resource:Q81938 }
myocardial infarction pain
action count
action intersection
action filter_type
action find_reverse
entity myocardial infarction
relation medical condition treated
type drug
action filter_type
action find_reverse
entity pain
relation medical condition treated
type drug
[{'concept': 'drug'}, 'medical condition treated', 'myocardial infarction'] [{'concept': 'drug'}, 'medical condition treated', 'pain']
SELECT DISTINCT ( COUNT ( ?v ) AS ?p ) WHERE { ?v property:medical_condition_treated resource:myocardial_infarction . ?v rdf:type ontology:drug . ?v rdf:type ontology:drug . ?v property:medical_condition_treated resource:pain }
[]
drug
SYSTEM
2
Q190012 Q162867
(c(Q8386),P2175,Q12152) (c(Q8386),P2175,Q81938)
action count
action intersection
action filter_type
action find_reverse
entity Q12152
relation P2175
type Q8386
action filter_type
action find_reverse
entity Q81938
relation P2175
type Q8386
[ANSWER]
[{'concept': 'Q8386'}, 'P2175', 'Q12152'] [{'concept': 'Q8386'}, 'P2175', 'Q81938']
SELECT DISTINCT ( COUNT ( ?v ) AS ?p ) WHERE { ?v property:P2175 resource:Q12152 . ?v rdf:type ontology:Q8386 . ?v rdf:type ontology:Q8386 . ?v property:P2175 resource:Q81938 }
adenosine nitroglycerin
2
action count
action intersection
action filter_type
action find_reverse
entity myocardial infarction
relation medical condition treated
type drug
action filter_type
action find_reverse
entity pain
relation medical condition treated
type drug
[{'concept': 'drug'}, 'medical condition treated', 'myocardial infarction'] [{'concept': 'drug'}, 'medical condition treated', 'pain']
SELECT DISTINCT ( COUNT ( ?v ) AS ?p ) WHERE { ?v property:medical_condition_treated resource:myocardial_infarction . ?v rdf:type ontology:drug . ?v rdf:type ontology:drug . ?v property:medical_condition_treated resource:pain }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q12152
P509
Q4164871 Q464980
USER
How many positions and exhibitions died from myocardial infarction ?
(c(Q4164871),P509,Q12152) (c(Q464980),P509,Q12152)
action count
action union
action filter_type
action find_reverse
entity Q12152
relation P509
type Q4164871
action filter_type
action find_reverse
entity Q12152
relation P509
type Q464980
[{'concept': 'Q4164871'}, 'P509', 'Q12152'] [{'concept': 'Q464980'}, 'P509', 'Q12152']
SELECT DISTINCT ( COUNT ( ?c ) AS ?q ) WHERE { VALUES ( ?e ) { ( ontology:Q4164871 ) ( ontology:Q464980 ) } . ?c rdf:type ?e }
myocardial infarction
action count
action union
action filter_type
action find_reverse
entity myocardial infarction
relation cause of death
type position
action filter_type
action find_reverse
entity myocardial infarction
relation cause of death
type exhibition
[{'concept': 'position'}, 'cause of death', 'myocardial infarction'] [{'concept': 'exhibition'}, 'cause of death', 'myocardial infarction']
SELECT DISTINCT ( COUNT ( ?c ) AS ?q ) WHERE { VALUES ( ?e ) { ( ontology:position ) ( ontology:exhibition ) } . ?c rdf:type ?e }
[]
position exhibition
SYSTEM
1 positions and 1 exhibitions
Q5137303 Q43739
(c(Q4164871),P509,Q12152) (c(Q464980),P509,Q12152)
action count
action union
action filter_type
action find_reverse
entity Q12152
relation P509
type Q4164871
action filter_type
action find_reverse
entity Q12152
relation P509
type Q464980
[ANSWER]
[{'concept': 'Q4164871'}, 'P509', 'Q12152'] [{'concept': 'Q464980'}, 'P509', 'Q12152']
SELECT DISTINCT ( COUNT ( ?c ) AS ?q ) WHERE { VALUES ( ?e ) { ( ontology:Q4164871 ) ( ontology:Q464980 ) } . ?c rdf:type ?e }
Clóvis Bornay Pius X
1 positions and 1 exhibitions
action count
action union
action filter_type
action find_reverse
entity myocardial infarction
relation cause of death
type position
action filter_type
action find_reverse
entity myocardial infarction
relation cause of death
type exhibition
[{'concept': 'position'}, 'cause of death', 'myocardial infarction'] [{'concept': 'exhibition'}, 'cause of death', 'myocardial infarction']
SELECT DISTINCT ( COUNT ( ?c ) AS ?q ) WHERE { VALUES ( ?e ) { ( ontology:position ) ( ontology:exhibition ) } . ?c rdf:type ?e }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q18554891 Q81938
P2176
Q8386
USER
Which drugs are used as an antidote for pain and squamous cell carcinoma ?
AND((Q81938,P2176,c(Q8386)), (Q18554891,P2176,c(Q8386)))
action filter_type
action intersection
action find
entity Q81938
relation P2176
action find
entity Q18554891
relation P2176
type Q8386
{'AND': [['Q81938', 'P2176', {'concept': 'Q8386'}], ['Q18554891', 'P2176', {'concept': 'Q8386'}]]}
SELECT DISTINCT ?c WHERE { resource:Q18554891 property:P2176 ?c . resource:Q81938 property:P2176 ?c . ?c rdf:type ontology:Q8386 }
squamous cell carcinoma pain
action filter_type
action intersection
action find
entity pain
relation drug used for treatment
action find
entity squamous cell carcinoma
relation drug used for treatment
type drug
{'AND': [['pain', 'drug used for treatment', {'concept': 'drug'}], ['squamous cell carcinoma', 'drug used for treatment', {'concept': 'drug'}]]}
SELECT DISTINCT ?c WHERE { resource:squamous_cell_carcinoma property:drug_used_for_treatment ?c . resource:pain property:drug_used_for_treatment ?c . ?c rdf:type ontology:drug }
[]
drug
Q18216
SYSTEM
acetylsalicylic acid
Q18216
AND((Q81938,P2176,c(Q8386)), (Q18554891,P2176,c(Q8386)))
action filter_type
action intersection
action find
entity Q81938
relation P2176
action find
entity Q18554891
relation P2176
type Q8386
Acid [ANSWER] is used as an antidote for pain and squamous cell carcinoma
{'AND': [['Q81938', 'P2176', {'concept': 'Q8386'}], ['Q18554891', 'P2176', {'concept': 'Q8386'}]]}
SELECT DISTINCT ?c WHERE { resource:Q18554891 property:P2176 ?c . resource:Q81938 property:P2176 ?c . ?c rdf:type ontology:Q8386 }
acetylsalicylic acid
Acid acetylsalicylic acid is used as an antidote for pain and squamous cell carcinoma
acetylsalicylic acid
action filter_type
action intersection
action find
entity pain
relation drug used for treatment
action find
entity squamous cell carcinoma
relation drug used for treatment
type drug
{'AND': [['pain', 'drug used for treatment', {'concept': 'drug'}], ['squamous cell carcinoma', 'drug used for treatment', {'concept': 'drug'}]]}
SELECT DISTINCT ?c WHERE { resource:squamous_cell_carcinoma property:drug_used_for_treatment ?c . resource:pain property:drug_used_for_treatment ?c . ?c rdf:type ontology:drug }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q18216 Q2053690
P2176
Q2057971
USER
Is Nevus of Ota cured by that drug ?
(Q2053690,P2176,Q18216)
action is_in
entity Q2053690
action find
entity Q18216
relation P2176
['Q2053690', 'P2176', 'Q18216']
ASK WHERE { resource:Q18216 property:P2176 resource:Q2053690 }
acetylsalicylic acid Nevus of Ota
action is_in
entity Nevus of Ota
action find
entity acetylsalicylic acid
relation drug used for treatment
['Nevus of Ota', 'drug used for treatment', 'acetylsalicylic acid']
ASK WHERE { resource:acetylsalicylic_acid property:drug_used_for_treatment resource:Nevus_of_Ota }
[]
health problem
SYSTEM
NO
(Q2053690,P2176,Q18216)
action is_in
entity Q2053690
action find
entity Q18216
relation P2176
[ANSWER]
['Q2053690', 'P2176', 'Q18216']
ASK WHERE { resource:Q18216 property:P2176 resource:Q2053690 }
No
action is_in
entity Nevus of Ota
action find
entity acetylsalicylic acid
relation drug used for treatment
['Nevus of Ota', 'drug used for treatment', 'acetylsalicylic acid']
ASK WHERE { resource:acetylsalicylic_acid property:drug_used_for_treatment resource:Nevus_of_Ota }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P641
Q349 Q12973014 Q502895
USER
Which sports were atmost 145673 sports teams and people a part of ?
(c(Q12973014)|c(Q502895),P641,c(Q349))
action atmost
action union
action find_reverse_tuple_counts
relation P641
type Q349
type Q12973014
action find_reverse_tuple_counts
relation P641
type Q349
type Q502895
value 145673
[[{'concept': 'Q12973014'}, {'concept': 'Q502895'}], 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ?l ( COUNT ( ?j ) AS ?x ) WHERE { { ?j property:P641 ?l . ?l rdf:type ontology:Q349 . ?j rdf:type ontology:Q12973014 } UNION { ?j property:P641 ?l . ?l rdf:type ontology:Q349 . ?j rdf:type ontology:Q502895 } } GROUP BY ?l } . FILTER ( ?x <= 145673 ) }
action atmost
action union
action find_reverse_tuple_counts
relation sport
type sport
type sports team
action find_reverse_tuple_counts
relation sport
type sport
type common name
value 145673
[[{'concept': 'sports team'}, {'concept': 'common name'}], 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ?l ( COUNT ( ?j ) AS ?x ) WHERE { { ?j property:sport ?l . ?l rdf:type ontology:sport . ?j rdf:type ontology:sports_team } UNION { ?j property:sport ?l . ?l rdf:type ontology:sport . ?j rdf:type ontology:common_name } } GROUP BY ?l } . FILTER ( ?x <= 145673 ) }
[]
sport sports team common name
Q809831 Q1295867 Q206763
SYSTEM
BASE jumping, pesäpallo, floorball
Q10962 Q1109032 Q4543 Q170737 Q114466 Q12100 Q500050 Q2348250 Q3337306 Q7707 Q193387 Q108429 Q171038 Q191051 Q17163326 Q4808504 Q3844480 Q809831 Q1575010 Q206763 Q133201 Q244700 Q1497658 Q847 Q902378 Q1761866 Q192832 Q1148620 Q601972 Q46241 Q83462 Q192937 Q3372565 Q208607 Q188966 Q961015 Q328716 Q131359 Q27672886 Q22857 Q657196 Q11420 Q338208 Q41323 Q7291 Q738622 Q148636 Q136851 Q2887217 Q7856 Q599204 Q5372 Q5375 Q5377 Q206989 Q5369 Q690676 Q8418 Q31897 Q74542 Q1050588 Q1758324 Q1457676 Q592031 Q1345388 Q102843 Q754586 Q1682809 Q40561 Q42486 Q1295867 Q2483334 Q2922870 Q1143202 Q41466 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 Q1455 Q2215841 Q36908 Q1081491 Q483693 Q389654 Q61465 Q185851 Q4245261 Q624161 Q327742 Q213711 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 Q1734 Q31920 Q6140386 Q3325635 Q207703 Q2701632 Q1875777 Q1358925 Q1748406 Q667692 Q183018 Q1622659 Q1421697 Q201252 Q177275 Q32112 Q14405929 Q1129021 Q1199515 Q178678 Q17988507 Q6350707 Q159992 Q3924425 Q3341285 Q210778 Q192420 Q1784241 Q1188693 Q204686 Q1055193 Q124100 Q2440459 Q429006
(c(Q12973014)|c(Q502895),P641,c(Q349))
action atmost
action union
action find_reverse_tuple_counts
relation P641
type Q349
type Q12973014
action find_reverse_tuple_counts
relation P641
type Q349
type Q502895
value 145673
[ANSWERS] were atmost 145673 sports teams and people a part of
[[{'concept': 'Q12973014'}, {'concept': 'Q502895'}], 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ?l ( COUNT ( ?j ) AS ?x ) WHERE { { ?j property:P641 ?l . ?l rdf:type ontology:Q349 . ?j rdf:type ontology:Q12973014 } UNION { ?j property:P641 ?l . ?l rdf:type ontology:Q349 . ?j rdf:type ontology:Q502895 } } GROUP BY ?l } . FILTER ( ?x <= 145673 ) }
rugby league college football beach volleyball long jump mixed martial arts fencing cross country running team time trial yachting water polo croquet archery softball windsurfing motorcycle racing snocross rink bandy BASE jumping para rowing floorball squash Ultimate memory sport tennis equestrian sport puroresu paintball Finswimming Camogie drag racing weightlifting korfball 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 badminton dancesport Kabaddi curling women's basketball rallying rallycross basketball cricket golf shooting sport baseball canoe polo handball 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 ice hockey 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 field hockey cycle sport mountaineering football parkour Greco-Roman wrestling rhythmic gymnastics lacrosse touring car racing gliding relay race hurling 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 volleyball 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 beach soccer Kart racing korbball mind sport winter sport pallone bodybuilding wheelchair fencing Duathlon
BASE jumping, pesäpallo and floorball were atmost 145673 sports teams and people a part of
BASE jumping pesäpallo floorball
action atmost
action union
action find_reverse_tuple_counts
relation sport
type sport
type sports team
action find_reverse_tuple_counts
relation sport
type sport
type common name
value 145673
[[{'concept': 'sports team'}, {'concept': 'common name'}], 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ?l ( COUNT ( ?j ) AS ?x ) WHERE { { ?j property:sport ?l . ?l rdf:type ontology:sport . ?j rdf:type ontology:sports_team } UNION { ?j property:sport ?l . ?l rdf:type ontology:sport . ?j rdf:type ontology:common_name } } GROUP BY ?l } . FILTER ( ?x <= 145673 ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q2167372
P641
Q349 Q500834 Q13406554
USER
How many sports did lesser number of tournaments or sport competitions participate in than fell running ?
(c(Q500834)|c(Q13406554),P641,c(Q349))
action count
action less
action union
action find_reverse_tuple_counts
relation P641
type Q349
type Q500834
action find_reverse_tuple_counts
relation P641
type Q349
type Q13406554
action count
action filter_multi_types
action find_reverse
entity Q2167372
relation P641
type Q500834
type Q13406554
[[{'concept': 'Q500834'}, {'concept': 'Q13406554'}], 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?l ) WHERE { { SELECT DISTINCT ?k ( COUNT ( ?w ) AS ?q ) WHERE { { ?k rdf:type ontology:Q349 . ?w rdf:type ontology:Q13406554 . ?w property:P641 ?k } UNION { ?w property:P641 ?k . ?k rdf:type ontology:Q349 . ?w rdf:type ontology:Q500834 } } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?a ) WHERE { ?u property:P641 resource:Q2167372 . { { ?u rdf:type ontology:Q500834 } UNION { ?u rdf:type ontology:Q13406554 } } } } . FILTER ( ?q < ?a ) }
fell running
action count
action less
action union
action find_reverse_tuple_counts
relation sport
type sport
type tournament
action find_reverse_tuple_counts
relation sport
type sport
type sport competition
action count
action filter_multi_types
action find_reverse
entity fell running
relation sport
type tournament
type sport competition
[[{'concept': 'tournament'}, {'concept': 'sport competition'}], 'sport', {'concept': 'sport'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?l ) WHERE { { SELECT DISTINCT ?k ( COUNT ( ?w ) AS ?q ) WHERE { { ?k rdf:type ontology:sport . ?w rdf:type ontology:sport_competition . ?w property:sport ?k } UNION { ?w property:sport ?k . ?k rdf:type ontology:sport . ?w rdf:type ontology:tournament } } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?a ) WHERE { ?u property:sport resource:fell_running . { { ?u rdf:type ontology:tournament } UNION { ?u rdf:type ontology:sport_competition } } } } . FILTER ( ?q < ?a ) }
[]
sport tournament sport competition
SYSTEM
124
Q4543 Q170737 Q2348250 Q3337306 Q193387 Q108429 Q191051 Q4808504 Q3844480 Q809831 Q1575010 Q244700 Q1497658 Q902378 Q1761866 Q192832 Q1148620 Q83462 Q192937 Q3372565 Q208607 Q188966 Q961015 Q27672886 Q22857 Q657196 Q338208 Q738622 Q148636 Q599204 Q206989 Q690676 Q31897 Q74542 Q1050588 Q1457676 Q592031 Q1345388 Q102843 Q754586 Q1682809 Q40561 Q1295867 Q2483334 Q2922870 Q1143202 Q850256 Q204632 Q627165 Q393808 Q213796 Q1866478 Q182570 Q989473 Q1194269 Q2497700 Q990637 Q105674 Q215862 Q212845 Q1757181 Q1145338 Q2250158 Q212434 Q43450 Q6034982 Q12834857 Q61065 Q2284014 Q4429020 Q2413978 Q13108218 Q4851143 Q14300548 Q2215841 Q36908 Q483693 Q389654 Q4245261 Q624161 Q327742 Q271277 Q376040 Q4347112 Q5465793 Q797108 Q963312 Q130949 Q535116 Q2360406 Q20856109 Q1078835 Q838781 Q26787631 Q1899731 Q943526 Q647559 Q1541373 Q1150656 Q1063445 Q6140386 Q3325635 Q207703 Q1358925 Q667692 Q1622659 Q1421697 Q201252 Q177275 Q14405929 Q1129021 Q1199515 Q6350707 Q159992 Q3924425 Q210778 Q192420 Q1784241 Q1188693 Q204686 Q1055193 Q124100 Q2440459 Q429006
(c(Q500834)|c(Q13406554),P641,c(Q349))
action count
action less
action union
action find_reverse_tuple_counts
relation P641
type Q349
type Q500834
action find_reverse_tuple_counts
relation P641
type Q349
type Q13406554
action count
action filter_multi_types
action find_reverse
entity Q2167372
relation P641
type Q500834
type Q13406554
[ANSWER]
[[{'concept': 'Q500834'}, {'concept': 'Q13406554'}], 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?l ) WHERE { { SELECT DISTINCT ?k ( COUNT ( ?w ) AS ?q ) WHERE { { ?k rdf:type ontology:Q349 . ?w rdf:type ontology:Q13406554 . ?w property:P641 ?k } UNION { ?w property:P641 ?k . ?k rdf:type ontology:Q349 . ?w rdf:type ontology:Q500834 } } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?a ) WHERE { ?u property:P641 resource:Q2167372 . { { ?u rdf:type ontology:Q500834 } UNION { ?u rdf:type ontology:Q13406554 } } } } . FILTER ( ?q < ?a ) }
beach volleyball long jump team time trial yachting croquet archery windsurfing snocross rink bandy BASE jumping para rowing Ultimate memory sport equestrian sport puroresu paintball Finswimming weightlifting korfball Kettlebell lifting kung fu contract bridge women's boxing Flying disc games climbing medley swimming giant slalom skiing dancesport Kabaddi rallycross shooting sport canoe polo natural track luge para-alpine skiing fistball rackets wingsuit flying greyhound racing tug of war racquetball pair skating sumo pesäpallo Valencian pilota boxe roque shinty Gaelic football Harri-jasotze Dog agility powerlifting American handball discus throw international draughts harness racing Aizkolaritza Broomball running motocross Basque pelota paralympic athletics Adventure racing five-a-side football Olympic sport gymnastics Inline skating strength training water sport Contact sport competition aerobatics paralympic swimming gymnastics balkline and straight rail skating cycle sport mountaineering parkour Greco-Roman wrestling touring car racing gliding relay race Savate wakeboarding strength athletics CP football jeu de paume Sledge hockey skiing beach handball real tennis canoeing Powerchair Football eventing K-1 Frisian handball Castell Goalball sport climbing wheelchair curling nine-ball Kitō-ryū Valencian trinquet rodeo speed skiing Nordic walking hockey Chilean rodeo pankration bobsleigh high diving super giant slalom skiing formula racing Kalari surfing combined track and field events beach soccer Kart racing korbball mind sport winter sport pallone bodybuilding wheelchair fencing Duathlon
124
action count
action less
action union
action find_reverse_tuple_counts
relation sport
type sport
type tournament
action find_reverse_tuple_counts
relation sport
type sport
type sport competition
action count
action filter_multi_types
action find_reverse
entity fell running
relation sport
type tournament
type sport competition
[[{'concept': 'tournament'}, {'concept': 'sport competition'}], 'sport', {'concept': 'sport'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?l ) WHERE { { SELECT DISTINCT ?k ( COUNT ( ?w ) AS ?q ) WHERE { { ?k rdf:type ontology:sport . ?w rdf:type ontology:sport_competition . ?w property:sport ?k } UNION { ?w property:sport ?k . ?k rdf:type ontology:sport . ?w rdf:type ontology:tournament } } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?a ) WHERE { ?u property:sport resource:fell_running . { { ?u rdf:type ontology:tournament } UNION { ?u rdf:type ontology:sport_competition } } } } . FILTER ( ?q < ?a ) }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q18141 Q1717689
P47 P27
Q15617994
USER
Which administrative territories do Walter Capps belong to or share the border with Piedicavallo ?
OR((Q1717689,P27,c(Q15617994)), (Q18141,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q1717689
relation P27
action find
entity Q18141
relation P47
type Q15617994
{'OR': [['Q1717689', 'P27', {'concept': 'Q15617994'}], ['Q18141', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?a WHERE { { { resource:Q1717689 property:P27 ?a } UNION { resource:Q18141 property:P47 ?a } } . ?a rdf:type ontology:Q15617994 }
Piedicavallo Walter Capps
action filter_type
action union
action find
entity Walter Capps
relation country of citizenship
action find
entity Piedicavallo
relation shares border with
type designation for an administrative territorial entity
{'OR': [['Walter Capps', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Piedicavallo', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?a WHERE { { { resource:Walter_Capps property:country_of_citizenship ?a } UNION { resource:Piedicavallo property:shares_border_with ?a } } . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q18186 Q18184 Q30 Q18022 Q18029 Q18017 Q35053 Q18037 Q18156 Q18172
SYSTEM
Some of them are Valle San Nicolao, Valle Mosso, United States of America, Bioglio, Callabiana, Andorno Micca, Gaby, Campiglia Cervo, Sagliano Micca, Tavigliano
Q18186 Q18172 Q18095 Q18156 Q18155 Q18022 Q18162 Q30 Q18037 Q18184 Q18029 Q18017 Q35053
OR((Q1717689,P27,c(Q15617994)), (Q18141,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q1717689
relation P27
action find
entity Q18141
relation P47
type Q15617994
Walter Capps belong to [ANSWERS]
{'OR': [['Q1717689', 'P27', {'concept': 'Q15617994'}], ['Q18141', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?a WHERE { { { resource:Q1717689 property:P27 ?a } UNION { resource:Q18141 property:P47 ?a } } . ?a rdf:type ontology:Q15617994 }
Valle San Nicolao Tavigliano Pettinengo Sagliano Micca Rosazza Bioglio Selve Marcone United States of America Campiglia Cervo Valle Mosso Callabiana Andorno Micca Gaby
Walter Capps belong to Valle San Nicolao, Valle Mosso, United States of America, Bioglio, Callabiana, Andorno Micca, Gaby, Campiglia Cervo, Sagliano Micca and Tavigliano
Valle San Nicolao Valle Mosso United States of America Bioglio Callabiana Andorno Micca Gaby Campiglia Cervo Sagliano Micca Tavigliano
action filter_type
action union
action find
entity Walter Capps
relation country of citizenship
action find
entity Piedicavallo
relation shares border with
type designation for an administrative territorial entity
{'OR': [['Walter Capps', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Piedicavallo', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?a WHERE { { { resource:Walter_Capps property:country_of_citizenship ?a } UNION { resource:Piedicavallo property:shares_border_with ?a } } . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]