Simple Question (Direct)
Simple Question
Q597414
P641
Q349
USER
What did Duncan Goodhew participate in ?
(Q597414,P641,c(Q349))
action filter_type
action find
entity Q597414
relation P641
type Q349
['Q597414', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q349 . resource:Q597414 property:P641 ?v }
Duncan Goodhew
action filter_type
action find
entity Duncan Goodhew
relation sport
type sport
['Duncan Goodhew', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:sport . resource:Duncan_Goodhew property:sport ?v }
[]
sport
Q31920
SYSTEM
swimming
Q31920
(Q597414,P641,c(Q349))
action filter_type
action find
entity Q597414
relation P641
type Q349
Duncan Goodhew participated in [ANSWER]
['Q597414', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q349 . resource:Q597414 property:P641 ?v }
swimming
Duncan Goodhew participated in swimming
swimming
action filter_type
action find
entity Duncan Goodhew
relation sport
type sport
['Duncan Goodhew', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:sport . resource:Duncan_Goodhew property:sport ?v }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q597414
P734
Q82799
USER
Which name is associated with Duncan Goodhew ?
(Q597414,P734,c(Q82799))
action filter_type
action find
entity Q597414
relation P734
type Q82799
['Q597414', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?z WHERE { resource:Q597414 property:P734 ?z . ?z rdf:type ontology:Q82799 }
Duncan Goodhew
action filter_type
action find
entity Duncan Goodhew
relation family name
type name
['Duncan Goodhew', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?z WHERE { resource:Duncan_Goodhew property:family_name ?z . ?z rdf:type ontology:name }
[]
name
Q5583386
SYSTEM
Goodhew
Q5583386
(Q597414,P734,c(Q82799))
action filter_type
action find
entity Q597414
relation P734
type Q82799
[ANSWER] is associated with Duncan [ANSWER]
['Q597414', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?z WHERE { resource:Q597414 property:P734 ?z . ?z rdf:type ontology:Q82799 }
Goodhew
Goodhew is associated with Duncan Goodhew
Goodhew
action filter_type
action find
entity Duncan Goodhew
relation family name
type name
['Duncan Goodhew', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?z WHERE { resource:Duncan_Goodhew property:family_name ?z . ?z rdf:type ontology:name }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P641
Q349 Q12973014 Q18608583
USER
Which sports were atmost 77 sports teams or recurring sporting events a part of ?
(c(Q12973014)|c(Q18608583),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 Q18608583
value 77
[[{'concept': 'Q12973014'}, {'concept': 'Q18608583'}], 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?f ) AS ?p ) WHERE { { ?f property:P641 ?b . ?b rdf:type ontology:Q349 . ?f rdf:type ontology:Q18608583 } UNION { ?f property:P641 ?b . ?f rdf:type ontology:Q12973014 . ?b rdf:type ontology:Q349 } } GROUP BY ?b } . FILTER ( ?p <= 77 ) }
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 recurring sporting event
value 77
[[{'concept': 'sports team'}, {'concept': 'recurring sporting event'}], 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?f ) AS ?p ) WHERE { { ?f property:sport ?b . ?b rdf:type ontology:sport . ?f rdf:type ontology:recurring_sporting_event } UNION { ?f property:sport ?b . ?f rdf:type ontology:sports_team . ?b rdf:type ontology:sport } } GROUP BY ?b } . FILTER ( ?p <= 77 ) }
[]
sport sports team recurring sporting event
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 Q902378 Q1761866 Q192832 Q1148620 Q601972 Q46241 Q83462 Q192937 Q3372565 Q208607 Q188966 Q961015 Q328716 Q131359 Q27672886 Q22857 Q657196 Q11420 Q338208 Q41323 Q738622 Q148636 Q2887217 Q7856 Q599204 Q5377 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 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 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(Q18608583),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 Q18608583
value 77
[ANSWERS] were atmost 77 sports teams or recurring sporting events a part of
[[{'concept': 'Q12973014'}, {'concept': 'Q18608583'}], 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?f ) AS ?p ) WHERE { { ?f property:P641 ?b . ?b rdf:type ontology:Q349 . ?f rdf:type ontology:Q18608583 } UNION { ?f property:P641 ?b . ?f rdf:type ontology:Q12973014 . ?b rdf:type ontology:Q349 } } GROUP BY ?b } . FILTER ( ?p <= 77 ) }
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 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 dancesport Kabaddi women's basketball rallying rallycross golf 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 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 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 77 sports teams or recurring sporting events 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 recurring sporting event
value 77
[[{'concept': 'sports team'}, {'concept': 'recurring sporting event'}], 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?f ) AS ?p ) WHERE { { ?f property:sport ?b . ?b rdf:type ontology:sport . ?f rdf:type ontology:recurring_sporting_event } UNION { ?f property:sport ?b . ?f rdf:type ontology:sports_team . ?b rdf:type ontology:sport } } GROUP BY ?b } . FILTER ( ?p <= 77 ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q397
P407
Q34770 Q82799
USER
How many languages are the languages of work for around the same number of names as Latin ?
(c(Q82799),P407,c(Q34770))
action count
action approx
action find_reverse_tuple_counts
relation P407
type Q34770
type Q82799
action count
action filter_type
action find
entity Q397
relation P407
type Q34770
[{'concept': 'Q82799'}, 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?h ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?f ) AS ?y ) WHERE { ?f property:P407 ?t . ?t rdf:type ontology:Q34770 . ?f rdf:type ontology:Q82799 } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?r ) WHERE { resource:Q397 property:P407 ?m . ?m rdf:type ontology:Q34770 } } . FILTER ( ?y = ?r ) }
Latin
action count
action approx
action find_reverse_tuple_counts
relation language of work or name
type language
type name
action count
action filter_type
action find
entity Latin
relation language of work or name
type language
[{'concept': 'name'}, 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?h ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?f ) AS ?y ) WHERE { ?f property:language_of_work_or_name ?t . ?t rdf:type ontology:language . ?f rdf:type ontology:name } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?r ) WHERE { resource:Latin property:language_of_work_or_name ?m . ?m rdf:type ontology:language } } . FILTER ( ?y = ?r ) }
[]
language name
SYSTEM
28
Q132659 Q18130932 Q13414913 Q21161942 Q35499 Q37015 Q8785 Q35726 Q34909 Q27403 Q1420587 Q36206 Q1321 Q33976 Q33879 Q10498031 Q397 Q9056 Q8752 Q37041 Q652 Q35505 Q25167 Q25164 Q56982 Q35308 Q36790 Q447117
(c(Q82799),P407,c(Q34770))
action count
action approx
action find_reverse_tuple_counts
relation P407
type Q34770
type Q82799
action count
action filter_type
action find
entity Q397
relation P407
type Q34770
[ANSWER]
[{'concept': 'Q82799'}, 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?h ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?f ) AS ?y ) WHERE { ?f property:P407 ?t . ?t rdf:type ontology:Q34770 . ?f rdf:type ontology:Q82799 } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?r ) WHERE { resource:Q397 property:P407 ?m . ?m rdf:type ontology:Q34770 } } . FILTER ( ?y = ?r ) }
Egyptian hieroglyphs Traditional Chinese Simplified Chinese Serbian written in Cyrillic Old Church Slavonic Riksmål Armenian Etruscan Old Icelandic Galatian Høgnorsk Lak Spanish Sardinian language Pangasinan language Old East Norse Latin Czech Basque classical Chinese Italian Old Norse language Bokmål Nynorsk Judaeo-Portuguese Old Irish Sumerian Old Egyptian
28
action count
action approx
action find_reverse_tuple_counts
relation language of work or name
type language
type name
action count
action filter_type
action find
entity Latin
relation language of work or name
type language
[{'concept': 'name'}, 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?h ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?f ) AS ?y ) WHERE { ?f property:language_of_work_or_name ?t . ?t rdf:type ontology:language . ?f rdf:type ontology:name } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?r ) WHERE { resource:Latin property:language_of_work_or_name ?m . ?m rdf:type ontology:language } } . FILTER ( ?y = ?r ) }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q20653602 Q206763
P27 P495
Q15617994
USER
Which administrative territories are the countries of origin of floorball or are Isaac Heine a civilian of ?
OR((Q206763,P495,c(Q15617994)), (Q20653602,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q206763
relation P495
action find
entity Q20653602
relation P27
type Q15617994
{'OR': [['Q206763', 'P495', {'concept': 'Q15617994'}], ['Q20653602', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Q206763 property:P495 ?w } UNION { resource:Q20653602 property:P27 ?w } } . ?w rdf:type ontology:Q15617994 }
Isaac Heine floorball
action filter_type
action union
action find
entity floorball
relation country of origin
action find
entity Isaac Heine
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['floorball', 'country of origin', {'concept': 'designation for an administrative territorial entity'}], ['Isaac Heine', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?w WHERE { { { resource:floorball property:country_of_origin ?w } UNION { resource:Isaac_Heine property:country_of_citizenship ?w } } . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q33 Q142 Q39 Q34
SYSTEM
Finland, France, Switzerland, Sweden
Q33 Q142 Q39 Q34
OR((Q206763,P495,c(Q15617994)), (Q20653602,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q206763
relation P495
action find
entity Q20653602
relation P27
type Q15617994
[ANSWERS] are the countries of origin of floorball or are Isaac Heine a civilian of
{'OR': [['Q206763', 'P495', {'concept': 'Q15617994'}], ['Q20653602', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Q206763 property:P495 ?w } UNION { resource:Q20653602 property:P27 ?w } } . ?w rdf:type ontology:Q15617994 }
Finland France Switzerland Sweden
Finland, France, Switzerland and Sweden are the countries of origin of floorball or are Isaac Heine a civilian of
Finland France Switzerland Sweden
action filter_type
action union
action find
entity floorball
relation country of origin
action find
entity Isaac Heine
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['floorball', 'country of origin', {'concept': 'designation for an administrative territorial entity'}], ['Isaac Heine', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?w WHERE { { { resource:floorball property:country_of_origin ?w } UNION { resource:Isaac_Heine property:country_of_citizenship ?w } } . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P206
Q1267889 Q355304 Q15617994
USER
Which administrative territories are situated in the neighbourhood of max number of waterways or watercourses ?
(c(Q15617994),P206,c(Q1267889)|c(Q355304))
action argmax
action union
action find_tuple_counts
relation P206
type Q15617994
type Q1267889
action find_tuple_counts
relation P206
type Q15617994
type Q355304
[{'concept': 'Q15617994'}, 'P206', [{'concept': 'Q1267889'}, {'concept': 'Q355304'}]]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( MAX ( ?m ) AS ?a ) { SELECT DISTINCT ( COUNT ( ?e ) AS ?m ) ?r WHERE { VALUES ( ?q ) { ( ontology:Q355304 ) ( ontology:Q1267889 ) } . ?e rdf:type ?q } GROUP BY ?r } } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?c ) ?h WHERE { { ?h property:P206 ?t . ?h rdf:type ontology:Q15617994 . ?t rdf:type ontology:Q355304 } UNION { ?h property:P206 ?t . ?h rdf:type ontology:Q15617994 . ?t rdf:type ontology:Q1267889 } } GROUP BY ?h } . FILTER ( ?c = ?a ) }
action argmax
action union
action find_tuple_counts
relation located next to body of water
type designation for an administrative territorial entity
type waterway
action find_tuple_counts
relation located next to body of water
type designation for an administrative territorial entity
type watercourse
[{'concept': 'designation for an administrative territorial entity'}, 'located next to body of water', [{'concept': 'waterway'}, {'concept': 'watercourse'}]]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( MAX ( ?m ) AS ?a ) { SELECT DISTINCT ( COUNT ( ?e ) AS ?m ) ?r WHERE { VALUES ( ?q ) { ( ontology:watercourse ) ( ontology:waterway ) } . ?e rdf:type ?q } GROUP BY ?r } } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?c ) ?h WHERE { { ?h property:located_next_to_body_of_water ?t . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . ?t rdf:type ontology:watercourse } UNION { ?h property:located_next_to_body_of_water ?t . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . ?t rdf:type ontology:waterway } } GROUP BY ?h } . FILTER ( ?c = ?a ) }
[]
waterway watercourse designation for an administrative territorial entity
Q36
SYSTEM
Poland
Q36
(c(Q15617994),P206,c(Q1267889)|c(Q355304))
action argmax
action union
action find_tuple_counts
relation P206
type Q15617994
type Q1267889
action find_tuple_counts
relation P206
type Q15617994
type Q355304
[ANSWER] is situated in the neighbourhood of max number of waterways or watercourses
[{'concept': 'Q15617994'}, 'P206', [{'concept': 'Q1267889'}, {'concept': 'Q355304'}]]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( MAX ( ?m ) AS ?a ) { SELECT DISTINCT ( COUNT ( ?e ) AS ?m ) ?r WHERE { VALUES ( ?q ) { ( ontology:Q355304 ) ( ontology:Q1267889 ) } . ?e rdf:type ?q } GROUP BY ?r } } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?c ) ?h WHERE { { ?h property:P206 ?t . ?h rdf:type ontology:Q15617994 . ?t rdf:type ontology:Q355304 } UNION { ?h property:P206 ?t . ?h rdf:type ontology:Q15617994 . ?t rdf:type ontology:Q1267889 } } GROUP BY ?h } . FILTER ( ?c = ?a ) }
Poland
Poland is situated in the neighbourhood of max number of waterways or watercourses
Poland
action argmax
action union
action find_tuple_counts
relation located next to body of water
type designation for an administrative territorial entity
type waterway
action find_tuple_counts
relation located next to body of water
type designation for an administrative territorial entity
type watercourse
[{'concept': 'designation for an administrative territorial entity'}, 'located next to body of water', [{'concept': 'waterway'}, {'concept': 'watercourse'}]]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( MAX ( ?m ) AS ?a ) { SELECT DISTINCT ( COUNT ( ?e ) AS ?m ) ?r WHERE { VALUES ( ?q ) { ( ontology:watercourse ) ( ontology:waterway ) } . ?e rdf:type ?q } GROUP BY ?r } } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?c ) ?h WHERE { { ?h property:located_next_to_body_of_water ?t . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . ?t rdf:type ontology:watercourse } UNION { ?h property:located_next_to_body_of_water ?t . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . ?t rdf:type ontology:waterway } } GROUP BY ?h } . FILTER ( ?c = ?a ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q15617994 Q1048835
USER
Which political territories have diplomatic relations with min number of administrative territories ?
(c(Q1048835),P530,c(Q15617994))
action argmin
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ( MIN ( ?c ) AS ?z ) { SELECT DISTINCT ?l ( COUNT ( ?e ) AS ?c ) WHERE { ?l property:P530 ?e . ?l rdf:type ontology:Q1048835 . ?e rdf:type ontology:Q15617994 } GROUP BY ?l } } . { SELECT DISTINCT ?q ( COUNT ( ?s ) AS ?j ) WHERE { ?q property:P530 ?s . ?s rdf:type ontology:Q15617994 . ?q rdf:type ontology:Q1048835 } GROUP BY ?q } . FILTER ( ?j = ?z ) }
action argmin
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ( MIN ( ?c ) AS ?z ) { SELECT DISTINCT ?l ( COUNT ( ?e ) AS ?c ) WHERE { ?l property:diplomatic_relation ?e . ?l rdf:type ontology:political_territorial_entity . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?l } } . { SELECT DISTINCT ?q ( COUNT ( ?s ) AS ?j ) WHERE { ?q property:diplomatic_relation ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?q rdf:type ontology:political_territorial_entity } GROUP BY ?q } . FILTER ( ?j = ?z ) }
[]
designation for an administrative territorial entity political territorial entity
Q1000 Q769 Q691
SYSTEM
Gabon, Grenada, Papua New Guinea
Q1000 Q781 Q778 Q769 Q685 Q691
(c(Q1048835),P530,c(Q15617994))
action argmin
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
[ANSWERS] have diplomatic relations with min number of administrative territories
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ( MIN ( ?c ) AS ?z ) { SELECT DISTINCT ?l ( COUNT ( ?e ) AS ?c ) WHERE { ?l property:P530 ?e . ?l rdf:type ontology:Q1048835 . ?e rdf:type ontology:Q15617994 } GROUP BY ?l } } . { SELECT DISTINCT ?q ( COUNT ( ?s ) AS ?j ) WHERE { ?q property:P530 ?s . ?s rdf:type ontology:Q15617994 . ?q rdf:type ontology:Q1048835 } GROUP BY ?q } . FILTER ( ?j = ?z ) }
Gabon Antigua and Barbuda The Bahamas Grenada Solomon Islands Papua New Guinea
Gabon, Grenada and Papua New Guinea have diplomatic relations with min number of administrative territories
Gabon Grenada Papua New Guinea
action argmin
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ( MIN ( ?c ) AS ?z ) { SELECT DISTINCT ?l ( COUNT ( ?e ) AS ?c ) WHERE { ?l property:diplomatic_relation ?e . ?l rdf:type ontology:political_territorial_entity . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?l } } . { SELECT DISTINCT ?q ( COUNT ( ?s ) AS ?j ) WHERE { ?q property:diplomatic_relation ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?q rdf:type ontology:political_territorial_entity } GROUP BY ?q } . FILTER ( ?j = ?z ) }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P122
Q7275 Q4164871 Q1048835
USER
Which political territories have atmost 1 states and positions as the form of government ?
(c(Q1048835),P122,c(Q7275)|c(Q4164871))
action atmost
action union
action find_tuple_counts
relation P122
type Q1048835
type Q7275
action find_tuple_counts
relation P122
type Q1048835
type Q4164871
value 1
[{'concept': 'Q1048835'}, 'P122', [{'concept': 'Q7275'}, {'concept': 'Q4164871'}]]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?f ) AS ?y ) WHERE { { ?b property:P122 ?f . ?b rdf:type ontology:Q1048835 . ?f rdf:type ontology:Q7275 } UNION { ?b rdf:type ontology:Q1048835 . ?f rdf:type ontology:Q4164871 . ?b property:P122 ?f } } GROUP BY ?b } . FILTER ( ?y <= 1 ) }
action atmost
action union
action find_tuple_counts
relation basic form of government
type political territorial entity
type state
action find_tuple_counts
relation basic form of government
type political territorial entity
type position
value 1
[{'concept': 'political territorial entity'}, 'basic form of government', [{'concept': 'state'}, {'concept': 'position'}]]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?f ) AS ?y ) WHERE { { ?b property:basic_form_of_government ?f . ?b rdf:type ontology:political_territorial_entity . ?f rdf:type ontology:state } UNION { ?b rdf:type ontology:political_territorial_entity . ?f rdf:type ontology:position . ?b property:basic_form_of_government ?f } } GROUP BY ?b } . FILTER ( ?y <= 1 ) }
[]
state position political territorial entity
Q183 Q408 Q35
SYSTEM
Germany, Australia, Denmark
Q183 Q601252 Q193619 Q1059046 Q763 Q664 Q1925048 Q785 Q178084 Q16 Q35 Q38610 Q79965 Q223793 Q2594990 Q408 Q757 Q468378 Q40 Q1250464 Q151938 Q31747 Q129286
(c(Q1048835),P122,c(Q7275)|c(Q4164871))
action atmost
action union
action find_tuple_counts
relation P122
type Q1048835
type Q7275
action find_tuple_counts
relation P122
type Q1048835
type Q4164871
value 1
[ANSWERS] have atmost 1 states and positions as the form of government
[{'concept': 'Q1048835'}, 'P122', [{'concept': 'Q7275'}, {'concept': 'Q4164871'}]]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?f ) AS ?y ) WHERE { { ?b property:P122 ?f . ?b rdf:type ontology:Q1048835 . ?f rdf:type ontology:Q7275 } UNION { ?b rdf:type ontology:Q1048835 . ?f rdf:type ontology:Q4164871 . ?b property:P122 ?f } } GROUP BY ?b } . FILTER ( ?y <= 1 ) }
Germany Banovina of Croatia Union of South Africa Merkit people Saint Kitts and Nevis New Zealand San Pedro Partido Jersey Ilkhanate Canada Denmark Dominion of Newfoundland Golden Horde Kingdom of Etruria Dominion of New Zealand Australia Saint Vincent and the Grenadines County of Hoya Austria realm Neutral Moresnet Irish Free State British Raj
Germany, Australia and Denmark have atmost 1 states and positions as the form of government
Germany Australia Denmark
action atmost
action union
action find_tuple_counts
relation basic form of government
type political territorial entity
type state
action find_tuple_counts
relation basic form of government
type political territorial entity
type position
value 1
[{'concept': 'political territorial entity'}, 'basic form of government', [{'concept': 'state'}, {'concept': 'position'}]]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?f ) AS ?y ) WHERE { { ?b property:basic_form_of_government ?f . ?b rdf:type ontology:political_territorial_entity . ?f rdf:type ontology:state } UNION { ?b rdf:type ontology:political_territorial_entity . ?f rdf:type ontology:position . ?b property:basic_form_of_government ?f } } GROUP BY ?b } . FILTER ( ?y <= 1 ) }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q155
P530
Q15617994
USER
Do Brazil have ambassadorial relations with those political territories ?
(Q155,P530,Q183) (Q155,P530,Q408) (Q155,P530,Q35)
action is_in
entity prev_answer
action find
entity Q155
relation P530
['Q155', 'P530', 'Q183'] ['Q155', 'P530', 'Q408'] ['Q155', 'P530', 'Q35']
ASK WHERE { resource:Q155 property:P530 ?l . VALUES ( ?l ) { ( resource:Q183 ) ( resource:Q601252 ) ( resource:Q193619 ) } }
Brazil
action is_in
entity prev_answer
action find
entity Brazil
relation diplomatic relation
['Brazil', 'diplomatic relation', 'Germany'] ['Brazil', 'diplomatic relation', 'Australia'] ['Brazil', 'diplomatic relation', 'Denmark']
ASK WHERE { resource:Brazil property:diplomatic_relation ?l . VALUES ( ?l ) { ( resource:Germany ) ( resource:Banovina_of_Croatia ) ( resource:Union_of_South_Africa ) } }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q155,P530,Q183) (Q155,P530,Q408) (Q155,P530,Q35)
action is_in
entity prev_answer
action find
entity Q155
relation P530
[ANSWER]
['Q155', 'P530', 'Q183'] ['Q155', 'P530', 'Q408'] ['Q155', 'P530', 'Q35']
ASK WHERE { resource:Q155 property:P530 ?l . VALUES ( ?l ) { ( resource:Q183 ) ( resource:Q601252 ) ( resource:Q193619 ) } }
Yes
action is_in
entity prev_answer
action find
entity Brazil
relation diplomatic relation
['Brazil', 'diplomatic relation', 'Germany'] ['Brazil', 'diplomatic relation', 'Australia'] ['Brazil', 'diplomatic relation', 'Denmark']
ASK WHERE { resource:Brazil property:diplomatic_relation ?l . VALUES ( ?l ) { ( resource:Germany ) ( resource:Banovina_of_Croatia ) ( resource:Union_of_South_Africa ) } }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P495
Q1048835 Q2342494 Q7725634
USER
Which political territories are the countries of origin of atmost 744 collectables and literary works ?
(c(Q2342494)|c(Q7725634),P495,c(Q1048835))
action atmost
action union
action find_reverse_tuple_counts
relation P495
type Q1048835
type Q2342494
action find_reverse_tuple_counts
relation P495
type Q1048835
type Q7725634
value 744
[[{'concept': 'Q2342494'}, {'concept': 'Q7725634'}], 'P495', {'concept': 'Q1048835'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?u ) ?o WHERE { { ?g property:P495 ?o . ?o rdf:type ontology:Q1048835 . ?g rdf:type ontology:Q2342494 } UNION { ?g property:P495 ?o . ?g rdf:type ontology:Q7725634 . ?o rdf:type ontology:Q1048835 } } GROUP BY ?o } . FILTER ( ?u <= 744 ) }
action atmost
action union
action find_reverse_tuple_counts
relation country of origin
type political territorial entity
type collectable
action find_reverse_tuple_counts
relation country of origin
type political territorial entity
type literary work
value 744
[[{'concept': 'collectable'}, {'concept': 'literary work'}], 'country of origin', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?u ) ?o WHERE { { ?g property:country_of_origin ?o . ?o rdf:type ontology:political_territorial_entity . ?g rdf:type ontology:collectable } UNION { ?g property:country_of_origin ?o . ?g rdf:type ontology:literary_work . ?o rdf:type ontology:political_territorial_entity } } GROUP BY ?o } . FILTER ( ?u <= 744 ) }
[]
political territorial entity collectable literary work
Q183 Q35 Q16
SYSTEM
Germany, Denmark, Canada
Q1000 Q1747689 Q838261 Q183 Q769 Q763 Q664 Q766 Q1054923 Q13353 Q781 Q5705 Q1823 Q16 Q35 Q407199 Q778 Q691 Q234 Q2991382 Q40 Q9337 Q23635 Q31747 Q129286
(c(Q2342494)|c(Q7725634),P495,c(Q1048835))
action atmost
action union
action find_reverse_tuple_counts
relation P495
type Q1048835
type Q2342494
action find_reverse_tuple_counts
relation P495
type Q1048835
type Q7725634
value 744
[ANSWERS] are the countries of origin of atmost 744 collectables and literary works
[[{'concept': 'Q2342494'}, {'concept': 'Q7725634'}], 'P495', {'concept': 'Q1048835'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?u ) ?o WHERE { { ?g property:P495 ?o . ?o rdf:type ontology:Q1048835 . ?g rdf:type ontology:Q2342494 } UNION { ?g property:P495 ?o . ?g rdf:type ontology:Q7725634 . ?o rdf:type ontology:Q1048835 } } GROUP BY ?o } . FILTER ( ?u <= 744 ) }
Gabon Ancient Rome Federal Republic of Yugoslavia Germany Grenada Saint Kitts and Nevis New Zealand Jamaica British Hong Kong Montserrat Antigua and Barbuda Catalonia Aceh Canada Denmark Palestinian territories The Bahamas Papua New Guinea Flemish Region County of Provence Austria Flemish Region Bermuda Irish Free State British Raj
Germany, Denmark and Canada are the countries of origin of atmost 744 collectables and literary works
Germany Denmark Canada
action atmost
action union
action find_reverse_tuple_counts
relation country of origin
type political territorial entity
type collectable
action find_reverse_tuple_counts
relation country of origin
type political territorial entity
type literary work
value 744
[[{'concept': 'collectable'}, {'concept': 'literary work'}], 'country of origin', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?u ) ?o WHERE { { ?g property:country_of_origin ?o . ?o rdf:type ontology:political_territorial_entity . ?g rdf:type ontology:collectable } UNION { ?g property:country_of_origin ?o . ?g rdf:type ontology:literary_work . ?o rdf:type ontology:political_territorial_entity } } GROUP BY ?o } . FILTER ( ?u <= 744 ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q16
P1313
Q12737077
USER
Which occupation serves as the political office that is fulfilled by the head of the government of that political territory ?
(Q16,P1313,c(Q12737077))
action filter_type
action find
entity Q16
relation P1313
type Q12737077
['Q16', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q12737077 . resource:Q16 property:P1313 ?a }
Canada
action filter_type
action find
entity Canada
relation office held by head of government
type occupation
['Canada', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:occupation . resource:Canada property:office_held_by_head_of_government ?a }
[]
occupation
Clarification for simple ques.
Q35
SYSTEM
Did you mean Denmark ?
Q183 Q35 Q16
(Q183,P1313,c(Q12737077)) (Q35,P1313,c(Q12737077)) (Q16,P1313,c(Q12737077))
[ANSWER]
['Q183', 'P1313', {'concept': 'Q12737077'}] ['Q35', 'P1313', {'concept': 'Q12737077'}] ['Q16', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q12737077 . resource:Q16 property:P1313 ?a }
Germany Denmark Canada
Did you mean Denmark ?
Denmark
['Germany', 'office held by head of government', {'concept': 'occupation'}] ['Denmark', 'office held by head of government', {'concept': 'occupation'}] ['Canada', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:occupation . resource:Canada property:office_held_by_head_of_government ?a }
[]
Simple Question (Coreferenced)
USER
No, I meant Canada. Could you tell me the answer for that?
(Q16,P1313,c(Q12737077))
Q16
['Q16', 'P1313', {'concept': 'Q12737077'}]
['Canada', 'office held by head of government', {'concept': 'occupation'}]
[]
Q839078
SYSTEM
Prime Minister of Canada
Q839078
(Q16,P1313,c(Q12737077))
action filter_type
action find
entity Q16
relation P1313
type Q12737077
The [ANSWER] serves as the political office that is fulfilled by the head of the government of that political territory
['Q16', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q12737077 . resource:Q16 property:P1313 ?a }
Prime Minister of Canada
The Prime Minister of Canada serves as the political office that is fulfilled by the head of the government of that political territory
Prime Minister of Canada
action filter_type
action find
entity Canada
relation office held by head of government
type occupation
['Canada', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:occupation . resource:Canada property:office_held_by_head_of_government ?a }
[]