Simple Question (Direct)
Simple Question
Q697716
P1344
Q16510064
USER
What did Milan Neralić participate in ?
(Q697716,P1344,c(Q16510064))
action filter_type
action find
entity Q697716
relation P1344
type Q16510064
['Q697716', 'P1344', {'concept': 'Q16510064'}]
SELECT DISTINCT ?c WHERE { resource:Q697716 property:P1344 ?c . ?c rdf:type ontology:Q16510064 }
Milan Neralić
action filter_type
action find
entity Milan Neralić
relation participant of
type sporting event
['Milan Neralić', 'participant of', {'concept': 'sporting event'}]
SELECT DISTINCT ?c WHERE { resource:Milan_Neralić property:participant_of ?c . ?c rdf:type ontology:sporting_event }
[]
sporting event
Q1133434
SYSTEM
Fencing at the 1900 Summer Olympics – Men's masters sabre
Q1133434
(Q697716,P1344,c(Q16510064))
action filter_type
action find
entity Q697716
relation P1344
type Q16510064
Milan Neralić participated in [ANSWER]
['Q697716', 'P1344', {'concept': 'Q16510064'}]
SELECT DISTINCT ?c WHERE { resource:Q697716 property:P1344 ?c . ?c rdf:type ontology:Q16510064 }
Fencing at the 1900 Summer Olympics – Men's masters sabre
Milan Neralić participated in Fencing at the 1900 Summer Olympics – Men's masters sabre
Fencing at the 1900 Summer Olympics – Men's masters sabre
action filter_type
action find
entity Milan Neralić
relation participant of
type sporting event
['Milan Neralić', 'participant of', {'concept': 'sporting event'}]
SELECT DISTINCT ?c WHERE { resource:Milan_Neralić property:participant_of ?c . ?c rdf:type ontology:sporting_event }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P115
Q1076486 Q811979 Q16510064
USER
Which sporting events have min number of sports venues or architectural structures as their ground ?
(c(Q16510064),P115,c(Q1076486)|c(Q811979))
action argmin
action union
action find_tuple_counts
relation P115
type Q16510064
type Q1076486
action find_tuple_counts
relation P115
type Q16510064
type Q811979
[{'concept': 'Q16510064'}, 'P115', [{'concept': 'Q1076486'}, {'concept': 'Q811979'}]]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ( MIN ( ?e ) AS ?s ) { SELECT DISTINCT ?z ( COUNT ( ?k ) AS ?e ) WHERE { { ?z property:P115 ?k . ?z rdf:type ontology:Q16510064 . ?k rdf:type ontology:Q811979 } UNION { ?z property:P115 ?k . ?z rdf:type ontology:Q16510064 . ?k rdf:type ontology:Q1076486 } } GROUP BY ?z } } . { SELECT DISTINCT ?b ( COUNT ( ?y ) AS ?p ) WHERE { { ?b property:P115 ?y . ?b rdf:type ontology:Q16510064 . ?y rdf:type ontology:Q811979 } UNION { ?b property:P115 ?y . ?b rdf:type ontology:Q16510064 . ?y rdf:type ontology:Q1076486 } } GROUP BY ?b } . FILTER ( ?p = ?s ) }
action argmin
action union
action find_tuple_counts
relation home venue
type sporting event
type sports venue
action find_tuple_counts
relation home venue
type sporting event
type architectural structure
[{'concept': 'sporting event'}, 'home venue', [{'concept': 'sports venue'}, {'concept': 'architectural structure'}]]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ( MIN ( ?e ) AS ?s ) { SELECT DISTINCT ?z ( COUNT ( ?k ) AS ?e ) WHERE { { ?z property:home_venue ?k . ?z rdf:type ontology:sporting_event . ?k rdf:type ontology:architectural_structure } UNION { ?z property:home_venue ?k . ?z rdf:type ontology:sporting_event . ?k rdf:type ontology:sports_venue } } GROUP BY ?z } } . { SELECT DISTINCT ?b ( COUNT ( ?y ) AS ?p ) WHERE { { ?b property:home_venue ?y . ?b rdf:type ontology:sporting_event . ?y rdf:type ontology:architectural_structure } UNION { ?b property:home_venue ?y . ?b rdf:type ontology:sporting_event . ?y rdf:type ontology:sports_venue } } GROUP BY ?b } . FILTER ( ?p = ?s ) }
[]
sports venue architectural structure sporting event
Q16612104 Q18395725
SYSTEM
Volleyball at the 2016 Summer Olympics – Men's tournament, Volleyball at the 2016 Summer Olympics – Women's tournament
Q16612104 Q18395725
(c(Q16510064),P115,c(Q1076486)|c(Q811979))
action argmin
action union
action find_tuple_counts
relation P115
type Q16510064
type Q1076486
action find_tuple_counts
relation P115
type Q16510064
type Q811979
[ANSWERS] have min number of sports venues or architectural structures as their ground
[{'concept': 'Q16510064'}, 'P115', [{'concept': 'Q1076486'}, {'concept': 'Q811979'}]]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ( MIN ( ?e ) AS ?s ) { SELECT DISTINCT ?z ( COUNT ( ?k ) AS ?e ) WHERE { { ?z property:P115 ?k . ?z rdf:type ontology:Q16510064 . ?k rdf:type ontology:Q811979 } UNION { ?z property:P115 ?k . ?z rdf:type ontology:Q16510064 . ?k rdf:type ontology:Q1076486 } } GROUP BY ?z } } . { SELECT DISTINCT ?b ( COUNT ( ?y ) AS ?p ) WHERE { { ?b property:P115 ?y . ?b rdf:type ontology:Q16510064 . ?y rdf:type ontology:Q811979 } UNION { ?b property:P115 ?y . ?b rdf:type ontology:Q16510064 . ?y rdf:type ontology:Q1076486 } } GROUP BY ?b } . FILTER ( ?p = ?s ) }
Volleyball at the 2016 Summer Olympics – Men's tournament Volleyball at the 2016 Summer Olympics – Women's tournament
Volleyball at the 2016 Summer Olympics – Men's tournament and Volleyball at the 2016 Summer Olympics – Women's tournament have min number of sports venues or architectural structures as their ground
Volleyball at the 2016 Summer Olympics – Men's tournament Volleyball at the 2016 Summer Olympics – Women's tournament
action argmin
action union
action find_tuple_counts
relation home venue
type sporting event
type sports venue
action find_tuple_counts
relation home venue
type sporting event
type architectural structure
[{'concept': 'sporting event'}, 'home venue', [{'concept': 'sports venue'}, {'concept': 'architectural structure'}]]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ( MIN ( ?e ) AS ?s ) { SELECT DISTINCT ?z ( COUNT ( ?k ) AS ?e ) WHERE { { ?z property:home_venue ?k . ?z rdf:type ontology:sporting_event . ?k rdf:type ontology:architectural_structure } UNION { ?z property:home_venue ?k . ?z rdf:type ontology:sporting_event . ?k rdf:type ontology:sports_venue } } GROUP BY ?z } } . { SELECT DISTINCT ?b ( COUNT ( ?y ) AS ?p ) WHERE { { ?b property:home_venue ?y . ?b rdf:type ontology:sporting_event . ?y rdf:type ontology:architectural_structure } UNION { ?b property:home_venue ?y . ?b rdf:type ontology:sporting_event . ?y rdf:type ontology:sports_venue } } GROUP BY ?b } . FILTER ( ?p = ?s ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q18395725
P641
Q349
USER
Which sport did that sporting event participate in ?
(Q18395725,P641,c(Q349))
action filter_type
action find
entity Q18395725
relation P641
type Q349
['Q18395725', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?r WHERE { resource:Q18395725 property:P641 ?r . ?r rdf:type ontology:Q349 }
Volleyball at the 2016 Summer Olympics – Women's tournament
action filter_type
action find
entity Volleyball at the 2016 Summer Olympics – Women's tournament
relation sport
type sport
["Volleyball at the 2016 Summer Olympics – Women's tournament", 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?r WHERE { resource:Volleyball_at_the_2016_Summer_Olympics_–_Women's_tournament property:sport ?r . ?r rdf:type ontology:sport }
[]
sport
Clarification for simple ques.
Q16612104
SYSTEM
Did you mean Volleyball at the 2016 Summer Olympics – Men's tournament ?
Q16612104 Q18395725
(Q16612104,P641,c(Q349)) (Q18395725,P641,c(Q349))
[ANSWER]
['Q16612104', 'P641', {'concept': 'Q349'}] ['Q18395725', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?r WHERE { resource:Q18395725 property:P641 ?r . ?r rdf:type ontology:Q349 }
Volleyball at the 2016 Summer Olympics – Men's tournament Volleyball at the 2016 Summer Olympics – Women's tournament
Did you mean Volleyball at the 2016 Summer Olympics – Men's tournament ?
Volleyball at the 2016 Summer Olympics – Men's tournament
["Volleyball at the 2016 Summer Olympics – Men's tournament", 'sport', {'concept': 'sport'}] ["Volleyball at the 2016 Summer Olympics – Women's tournament", 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?r WHERE { resource:Volleyball_at_the_2016_Summer_Olympics_–_Women's_tournament property:sport ?r . ?r rdf:type ontology:sport }
[]
Simple Question (Coreferenced)
USER
No, I meant Volleyball at the 2016 Summer Olympics – Women's tournament. Could you tell me the answer for that?
(Q18395725,P641,c(Q349))
Q18395725
['Q18395725', 'P641', {'concept': 'Q349'}]
["Volleyball at the 2016 Summer Olympics – Women's tournament", 'sport', {'concept': 'sport'}]
[]
Q1734
SYSTEM
volleyball
Q1734
(Q18395725,P641,c(Q349))
action filter_type
action find
entity Q18395725
relation P641
type Q349
That sporting event participated in [ANSWER]
['Q18395725', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?r WHERE { resource:Q18395725 property:P641 ?r . ?r rdf:type ontology:Q349 }
volleyball
That sporting event participated in volleyball
volleyball
action filter_type
action find
entity Volleyball at the 2016 Summer Olympics – Women's tournament
relation sport
type sport
["Volleyball at the 2016 Summer Olympics – Women's tournament", 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?r WHERE { resource:Volleyball_at_the_2016_Summer_Olympics_–_Women's_tournament property:sport ?r . ?r rdf:type ontology:sport }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q7392953 Q18395725
P17
Q15617994
USER
Which administrative territories are Volleyball at the 2016 Summer Olympics – Women's tournament or SS. Michael and Gabriel Cathedral, Satu Mare situated in ?
OR((Q18395725,P17,c(Q15617994)), (Q7392953,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q18395725
relation P17
action find
entity Q7392953
relation P17
type Q15617994
{'OR': [['Q18395725', 'P17', {'concept': 'Q15617994'}], ['Q7392953', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?z WHERE { { ?d property:P17 ?z . VALUES ( ?d ) { ( resource:Q18395725 ) ( resource:Q7392953 ) } } . ?z rdf:type ontology:Q15617994 }
SS. Michael and Gabriel Cathedral, Satu Mare Volleyball at the 2016 Summer Olympics – Women's tournament
action filter_type
action union
action find
entity Volleyball at the 2016 Summer Olympics – Women's tournament
relation country
action find
entity SS. Michael and Gabriel Cathedral, Satu Mare
relation country
type designation for an administrative territorial entity
{'OR': [["Volleyball at the 2016 Summer Olympics – Women's tournament", 'country', {'concept': 'designation for an administrative territorial entity'}], ['SS. Michael and Gabriel Cathedral, Satu Mare', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?z WHERE { { ?d property:country ?z . VALUES ( ?d ) { ( resource:Volleyball_at_the_2016_Summer_Olympics_–_Women's_tournament ) ( resource:SS._Michael_and_Gabriel_Cathedral,_Satu_Mare ) } } . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q155 Q218
SYSTEM
Brazil, Romania
Q155 Q218
OR((Q18395725,P17,c(Q15617994)), (Q7392953,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q18395725
relation P17
action find
entity Q7392953
relation P17
type Q15617994
[ANSWERS] are Volleyball at the 2016 Summer Olympics – Women's tournament or SS. Michael and Gabriel Cathedral, Satu Mare situated in
{'OR': [['Q18395725', 'P17', {'concept': 'Q15617994'}], ['Q7392953', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?z WHERE { { ?d property:P17 ?z . VALUES ( ?d ) { ( resource:Q18395725 ) ( resource:Q7392953 ) } } . ?z rdf:type ontology:Q15617994 }
Brazil Romania
Brazil and Romania are Volleyball at the 2016 Summer Olympics – Women's tournament or SS. Michael and Gabriel Cathedral, Satu Mare situated in
Brazil Romania
action filter_type
action union
action find
entity Volleyball at the 2016 Summer Olympics – Women's tournament
relation country
action find
entity SS. Michael and Gabriel Cathedral, Satu Mare
relation country
type designation for an administrative territorial entity
{'OR': [["Volleyball at the 2016 Summer Olympics – Women's tournament", 'country', {'concept': 'designation for an administrative territorial entity'}], ['SS. Michael and Gabriel Cathedral, Satu Mare', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?z WHERE { { ?d property:country ?z . VALUES ( ?d ) { ( resource:Volleyball_at_the_2016_Summer_Olympics_–_Women's_tournament ) ( resource:SS._Michael_and_Gabriel_Cathedral,_Satu_Mare ) } } . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q22857
P366
Q349 Q39546 Q8205328
USER
Which sports are considered as the main functionality of lesser number of tools and artefacts than climbing ?
(c(Q39546)|c(Q8205328),P366,c(Q349))
action less
action union
action find_reverse_tuple_counts
relation P366
type Q349
type Q39546
action find_reverse_tuple_counts
relation P366
type Q349
type Q8205328
action count
action filter_multi_types
action find_reverse
entity Q22857
relation P366
type Q39546
type Q8205328
[[{'concept': 'Q39546'}, {'concept': 'Q8205328'}], 'P366', {'concept': 'Q349'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?w ) AS ?f ) WHERE { VALUES ( ?a ) { ( ontology:Q39546 ) ( ontology:Q8205328 ) } . ?w rdf:type ?a } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:P366 resource:Q22857 . { { ?z rdf:type ontology:Q39546 } UNION { ?z rdf:type ontology:Q8205328 } } } } . FILTER ( ?f < ?y ) }
climbing
action less
action union
action find_reverse_tuple_counts
relation use
type sport
type tool
action find_reverse_tuple_counts
relation use
type sport
type artefact
action count
action filter_multi_types
action find_reverse
entity climbing
relation use
type tool
type artefact
[[{'concept': 'tool'}, {'concept': 'artefact'}], 'use', {'concept': 'sport'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?w ) AS ?f ) WHERE { VALUES ( ?a ) { ( ontology:tool ) ( ontology:artefact ) } . ?w rdf:type ?a } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:use resource:climbing . { { ?z rdf:type ontology:tool } UNION { ?z rdf:type ontology:artefact } } } } . FILTER ( ?f < ?y ) }
[]
sport tool artefact
Q206763 Q8418 Q183018
SYSTEM
floorball, handball, bandy
Q7856 Q5372 Q8418 Q1734 Q206989 Q183018 Q36908 Q500050 Q1875777 Q624161 Q1345388 Q177275 Q206763 Q2736 Q61065 Q847 Q41466 Q1194269 Q41323 Q7291
(c(Q39546)|c(Q8205328),P366,c(Q349))
action less
action union
action find_reverse_tuple_counts
relation P366
type Q349
type Q39546
action find_reverse_tuple_counts
relation P366
type Q349
type Q8205328
action count
action filter_multi_types
action find_reverse
entity Q22857
relation P366
type Q39546
type Q8205328
[ANSWERS] are considered as the main functionality of lesser number of tools and artefacts than climbing
[[{'concept': 'Q39546'}, {'concept': 'Q8205328'}], 'P366', {'concept': 'Q349'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?w ) AS ?f ) WHERE { VALUES ( ?a ) { ( ontology:Q39546 ) ( ontology:Q8205328 ) } . ?w rdf:type ?a } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:P366 resource:Q22857 . { { ?z rdf:type ontology:Q39546 } UNION { ?z rdf:type ontology:Q8205328 } } } } . FILTER ( ?f < ?y ) }
rallying basketball handball volleyball shooting sport bandy mountaineering cross country running air racing gliding greyhound racing bobsleigh floorball association football water sport tennis ice hockey harness racing American football badminton
Floorball, handball and bandy are considered as the main functionality of lesser number of tools and artefacts than climbing
floorball handball bandy
action less
action union
action find_reverse_tuple_counts
relation use
type sport
type tool
action find_reverse_tuple_counts
relation use
type sport
type artefact
action count
action filter_multi_types
action find_reverse
entity climbing
relation use
type tool
type artefact
[[{'concept': 'tool'}, {'concept': 'artefact'}], 'use', {'concept': 'sport'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?w ) AS ?f ) WHERE { VALUES ( ?a ) { ( ontology:tool ) ( ontology:artefact ) } . ?w rdf:type ?a } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:use resource:climbing . { { ?z rdf:type ontology:tool } UNION { ?z rdf:type ontology:artefact } } } } . FILTER ( ?f < ?y ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q14300548
P366
Q349 Q39546 Q8205328
USER
And how about skating?
(c(Q39546)|c(Q8205328),P366,c(Q349))
action less
action union
action find_reverse_tuple_counts
relation P366
type Q349
type Q39546
action find_reverse_tuple_counts
relation P366
type Q349
type Q8205328
action count
action filter_multi_types
action find_reverse
entity Q14300548
relation P366
type Q39546
type Q8205328
[[{'concept': 'Q39546'}, {'concept': 'Q8205328'}], 'P366', {'concept': 'Q349'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?f ) AS ?i ) WHERE { { ?f property:P366 ?u . ?u rdf:type ontology:Q349 . ?f rdf:type ontology:Q39546 } UNION { ?u rdf:type ontology:Q349 . ?f rdf:type ontology:Q8205328 . ?f property:P366 ?u } } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?g ) WHERE { ?k property:P366 resource:Q14300548 . { { ?k rdf:type ontology:Q8205328 } UNION { ?k rdf:type ontology:Q39546 } } } } . FILTER ( ?i < ?g ) }
skating
action less
action union
action find_reverse_tuple_counts
relation use
type sport
type tool
action find_reverse_tuple_counts
relation use
type sport
type artefact
action count
action filter_multi_types
action find_reverse
entity skating
relation use
type tool
type artefact
[[{'concept': 'tool'}, {'concept': 'artefact'}], 'use', {'concept': 'sport'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?f ) AS ?i ) WHERE { { ?f property:use ?u . ?u rdf:type ontology:sport . ?f rdf:type ontology:tool } UNION { ?u rdf:type ontology:sport . ?f rdf:type ontology:artefact . ?f property:use ?u } } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?g ) WHERE { ?k property:use resource:skating . { { ?k rdf:type ontology:artefact } UNION { ?k rdf:type ontology:tool } } } } . FILTER ( ?i < ?g ) }
[]
sport tool artefact
Q206763 Q8418 Q183018
SYSTEM
floorball, handball, bandy
Q7856 Q5372 Q8418 Q1734 Q206989 Q183018 Q36908 Q500050 Q1875777 Q624161 Q1345388 Q177275 Q206763 Q2736 Q61065 Q847 Q41466 Q1194269 Q41323 Q7291
(c(Q39546)|c(Q8205328),P366,c(Q349))
action less
action union
action find_reverse_tuple_counts
relation P366
type Q349
type Q39546
action find_reverse_tuple_counts
relation P366
type Q349
type Q8205328
action count
action filter_multi_types
action find_reverse
entity Q14300548
relation P366
type Q39546
type Q8205328
[ANSWERS]
[[{'concept': 'Q39546'}, {'concept': 'Q8205328'}], 'P366', {'concept': 'Q349'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?f ) AS ?i ) WHERE { { ?f property:P366 ?u . ?u rdf:type ontology:Q349 . ?f rdf:type ontology:Q39546 } UNION { ?u rdf:type ontology:Q349 . ?f rdf:type ontology:Q8205328 . ?f property:P366 ?u } } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?g ) WHERE { ?k property:P366 resource:Q14300548 . { { ?k rdf:type ontology:Q8205328 } UNION { ?k rdf:type ontology:Q39546 } } } } . FILTER ( ?i < ?g ) }
rallying basketball handball volleyball shooting sport bandy mountaineering cross country running air racing gliding greyhound racing bobsleigh floorball association football water sport tennis ice hockey harness racing American football badminton
floorball handball bandy
action less
action union
action find_reverse_tuple_counts
relation use
type sport
type tool
action find_reverse_tuple_counts
relation use
type sport
type artefact
action count
action filter_multi_types
action find_reverse
entity skating
relation use
type tool
type artefact
[[{'concept': 'tool'}, {'concept': 'artefact'}], 'use', {'concept': 'sport'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?f ) AS ?i ) WHERE { { ?f property:use ?u . ?u rdf:type ontology:sport . ?f rdf:type ontology:tool } UNION { ?u rdf:type ontology:sport . ?f rdf:type ontology:artefact . ?f property:use ?u } } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?g ) WHERE { ?k property:use resource:skating . { { ?k rdf:type ontology:artefact } UNION { ?k rdf:type ontology:tool } } } } . FILTER ( ?i < ?g ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P641
Q349 Q12973014 Q13406554
USER
Which sports did max number of sports teams and sport competitions participate in ?
(c(Q12973014)|c(Q13406554),P641,c(Q349))
action argmax
action union
action find_reverse_tuple_counts
relation P641
type Q349
type Q12973014
action find_reverse_tuple_counts
relation P641
type Q349
type Q13406554
[[{'concept': 'Q12973014'}, {'concept': 'Q13406554'}], 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( MAX ( ?i ) AS ?q ) { SELECT DISTINCT ?h ( COUNT ( ?w ) AS ?i ) WHERE { ?w rdf:type ?s . VALUES ( ?s ) { ( ontology:Q12973014 ) ( ontology:Q13406554 ) } } GROUP BY ?h } } . { SELECT DISTINCT ?x ( COUNT ( ?l ) AS ?b ) WHERE { VALUES ( ?r ) { ( ontology:Q12973014 ) ( ontology:Q13406554 ) } . ?l rdf:type ?r } GROUP BY ?x } . FILTER ( ?b = ?q ) }
action argmax
action union
action find_reverse_tuple_counts
relation sport
type sport
type sports team
action find_reverse_tuple_counts
relation sport
type sport
type sport competition
[[{'concept': 'sports team'}, {'concept': 'sport competition'}], 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( MAX ( ?i ) AS ?q ) { SELECT DISTINCT ?h ( COUNT ( ?w ) AS ?i ) WHERE { ?w rdf:type ?s . VALUES ( ?s ) { ( ontology:sports_team ) ( ontology:sport_competition ) } } GROUP BY ?h } } . { SELECT DISTINCT ?x ( COUNT ( ?l ) AS ?b ) WHERE { VALUES ( ?r ) { ( ontology:sports_team ) ( ontology:sport_competition ) } . ?l rdf:type ?r } GROUP BY ?x } . FILTER ( ?b = ?q ) }
[]
sport sports team sport competition
Q2736
SYSTEM
association football
Q2736
(c(Q12973014)|c(Q13406554),P641,c(Q349))
action argmax
action union
action find_reverse_tuple_counts
relation P641
type Q349
type Q12973014
action find_reverse_tuple_counts
relation P641
type Q349
type Q13406554
Max number of sports teams and sport competitions participated in [ANSWER]
[[{'concept': 'Q12973014'}, {'concept': 'Q13406554'}], 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( MAX ( ?i ) AS ?q ) { SELECT DISTINCT ?h ( COUNT ( ?w ) AS ?i ) WHERE { ?w rdf:type ?s . VALUES ( ?s ) { ( ontology:Q12973014 ) ( ontology:Q13406554 ) } } GROUP BY ?h } } . { SELECT DISTINCT ?x ( COUNT ( ?l ) AS ?b ) WHERE { VALUES ( ?r ) { ( ontology:Q12973014 ) ( ontology:Q13406554 ) } . ?l rdf:type ?r } GROUP BY ?x } . FILTER ( ?b = ?q ) }
association football
Max number of sports teams and sport competitions participated in association football
association football
action argmax
action union
action find_reverse_tuple_counts
relation sport
type sport
type sports team
action find_reverse_tuple_counts
relation sport
type sport
type sport competition
[[{'concept': 'sports team'}, {'concept': 'sport competition'}], 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( MAX ( ?i ) AS ?q ) { SELECT DISTINCT ?h ( COUNT ( ?w ) AS ?i ) WHERE { ?w rdf:type ?s . VALUES ( ?s ) { ( ontology:sports_team ) ( ontology:sport_competition ) } } GROUP BY ?h } } . { SELECT DISTINCT ?x ( COUNT ( ?l ) AS ?b ) WHERE { VALUES ( ?r ) { ( ontology:sports_team ) ( ontology:sport_competition ) } . ?l rdf:type ?r } GROUP BY ?x } . FILTER ( ?b = ?q ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q155 Q12130
P163
Q14660
USER
How many flags have Brazil or Brittany as their flag
(Q155,P163,c(Q14660)) (Q12130,P163,c(Q14660))
action count
action union
action filter_type
action find
entity Q155
relation P163
type Q14660
action filter_type
action find
entity Q12130
relation P163
type Q14660
['Q155', 'P163', {'concept': 'Q14660'}] ['Q12130', 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?x ) WHERE { ?r property:P163 ?q . VALUES ( ?r ) { ( resource:Q155 ) ( resource:Q12130 ) } }
Brazil Brittany
action count
action union
action filter_type
action find
entity Brazil
relation flag
type flag
action filter_type
action find
entity Brittany
relation flag
type flag
['Brazil', 'flag', {'concept': 'flag'}] ['Brittany', 'flag', {'concept': 'flag'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?x ) WHERE { ?r property:flag ?q . VALUES ( ?r ) { ( resource:Brazil ) ( resource:Brittany ) } }
[]
flag
SYSTEM
2
Q82194 Q12188
(Q155,P163,c(Q14660)) (Q12130,P163,c(Q14660))
action count
action union
action filter_type
action find
entity Q155
relation P163
type Q14660
action filter_type
action find
entity Q12130
relation P163
type Q14660
[ANSWER]
['Q155', 'P163', {'concept': 'Q14660'}] ['Q12130', 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?x ) WHERE { ?r property:P163 ?q . VALUES ( ?r ) { ( resource:Q155 ) ( resource:Q12130 ) } }
flag of Brazil flag of Brittany
2
action count
action union
action filter_type
action find
entity Brazil
relation flag
type flag
action filter_type
action find
entity Brittany
relation flag
type flag
['Brazil', 'flag', {'concept': 'flag'}] ['Brittany', 'flag', {'concept': 'flag'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?x ) WHERE { ?r property:flag ?q . VALUES ( ?r ) { ( resource:Brazil ) ( resource:Brittany ) } }
[]