Simple Question (Direct)
Simple Question
Q21621018
P641
Q349
USER
Which sport was Jean Chera a part of ?
(Q21621018,P641,c(Q349))
action filter_type
action find
entity Q21621018
relation P641
type Q349
['Q21621018', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?e WHERE { resource:Q21621018 property:P641 ?e . ?e rdf:type ontology:Q349 }
Jean Chera
action filter_type
action find
entity Jean Chera
relation sport
type sport
['Jean Chera', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?e WHERE { resource:Jean_Chera property:sport ?e . ?e rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q21621018,P641,c(Q349))
action filter_type
action find
entity Q21621018
relation P641
type Q349
Which sport was Jean Chera a part of
['Q21621018', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?e WHERE { resource:Q21621018 property:P641 ?e . ?e rdf:type ontology:Q349 }
association football
Which sport was Jean Chera a part of
association football
action filter_type
action find
entity Jean Chera
relation sport
type sport
['Jean Chera', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?e WHERE { resource:Jean_Chera property:sport ?e . ?e rdf:type ontology:sport }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q21621018
P19
Q1048835
USER
Which political territory was that person born at ?
(Q2736,P19,c(Q1048835))
action filter_type
action find
entity Q21621018
relation P19
type Q1048835
['Q2736', 'P19', {'concept': 'Q1048835'}]
SELECT DISTINCT ?c WHERE { resource:Q21621018 property:P19 ?c . ?c rdf:type ontology:Q1048835 }
Jean Chera
action filter_type
action find
entity Jean Chera
relation place of birth
type political territorial entity
['association football', 'place of birth', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?c WHERE { resource:Jean_Chera property:place_of_birth ?c . ?c rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q2007965
SYSTEM
Vera, Mato Grosso
Q2007965
(Q2736,P19,c(Q1048835))
action filter_type
action find
entity Q21621018
relation P19
type Q1048835
That person was born in [ANSWER]
['Q2736', 'P19', {'concept': 'Q1048835'}]
SELECT DISTINCT ?c WHERE { resource:Q21621018 property:P19 ?c . ?c rdf:type ontology:Q1048835 }
Vera, Mato Grosso
That person was born in Vera, Mato Grosso
Vera, Mato Grosso
action filter_type
action find
entity Jean Chera
relation place of birth
type political territorial entity
['association football', 'place of birth', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?c WHERE { resource:Jean_Chera property:place_of_birth ?c . ?c rdf:type ontology:political_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q2007965 Q694588
P19
Q502895
USER
Was Michael Hayböck born at that political territory ?
(Q694588,P19,Q2007965)
action is_in
entity Q694588
action find
entity Q2007965
relation P19
['Q694588', 'P19', 'Q2007965']
ASK WHERE { resource:Q2007965 property:P19 resource:Q694588 }
Vera, Mato Grosso Michael Hayböck
action is_in
entity Michael Hayböck
action find
entity Vera, Mato Grosso
relation place of birth
['Michael Hayböck', 'place of birth', 'Vera, Mato Grosso']
ASK WHERE { resource:Vera,_Mato_Grosso property:place_of_birth resource:Michael_Hayböck }
[]
common name
SYSTEM
NO
(Q694588,P19,Q2007965)
action is_in
entity Q694588
action find
entity Q2007965
relation P19
[ANSWER]
['Q694588', 'P19', 'Q2007965']
ASK WHERE { resource:Q2007965 property:P19 resource:Q694588 }
No
action is_in
entity Michael Hayböck
action find
entity Vera, Mato Grosso
relation place of birth
['Michael Hayböck', 'place of birth', 'Vera, Mato Grosso']
ASK WHERE { resource:Vera,_Mato_Grosso property:place_of_birth resource:Michael_Hayböck }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q3337306
P641
Q349 Q500834 Q12973014
USER
How many sports were greater number of tournaments or sports teams a part of than yachting ?
(c(Q500834)|c(Q12973014),P641,c(Q349))
action count
action greater
action union
action find_reverse_tuple_counts
relation P641
type Q349
type Q500834
action find_reverse_tuple_counts
relation P641
type Q349
type Q12973014
action count
action filter_multi_types
action find_reverse
entity Q3337306
relation P641
type Q500834
type Q12973014
[[{'concept': 'Q500834'}, {'concept': 'Q12973014'}], 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?l ) WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?r ) ?x WHERE { ?o rdf:type ?i . VALUES ( ?i ) { ( ontology:Q500834 ) ( ontology:Q12973014 ) } } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?z ) WHERE { { VALUES ( ?g ) { ( ontology:Q500834 ) ( ontology:Q12973014 ) } . ?d rdf:type ?g } . ?d property:P641 resource:Q3337306 } } . FILTER ( ?r > ?z ) }
yachting
action count
action greater
action union
action find_reverse_tuple_counts
relation sport
type sport
type tournament
action find_reverse_tuple_counts
relation sport
type sport
type sports team
action count
action filter_multi_types
action find_reverse
entity yachting
relation sport
type tournament
type sports team
[[{'concept': 'tournament'}, {'concept': 'sports team'}], 'sport', {'concept': 'sport'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?l ) WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?r ) ?x WHERE { ?o rdf:type ?i . VALUES ( ?i ) { ( ontology:tournament ) ( ontology:sports_team ) } } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?z ) WHERE { { VALUES ( ?g ) { ( ontology:tournament ) ( ontology:sports_team ) } . ?d rdf:type ?g } . ?d property:sport resource:yachting } } . FILTER ( ?r > ?z ) }
[]
sport tournament sports team
SYSTEM
51
Q10962 Q1109032 Q500050 Q7707 Q171038 Q17163326 Q206763 Q133201 Q847 Q601972 Q192937 Q188966 Q328716 Q41323 Q7291 Q136851 Q7856 Q599204 Q5372 Q5375 Q5377 Q5369 Q8418 Q754586 Q41466 Q43450 Q221635 Q1455 Q2215841 Q1081491 Q185851 Q213711 Q3930 Q963312 Q130949 Q535116 Q647559 Q606060 Q134211 Q1734 Q31920 Q2701632 Q1875777 Q1748406 Q183018 Q177275 Q2736 Q1199515 Q17988507 Q3341285 Q210778
(c(Q500834)|c(Q12973014),P641,c(Q349))
action count
action greater
action union
action find_reverse_tuple_counts
relation P641
type Q349
type Q500834
action find_reverse_tuple_counts
relation P641
type Q349
type Q12973014
action count
action filter_multi_types
action find_reverse
entity Q3337306
relation P641
type Q500834
type Q12973014
[ANSWER]
[[{'concept': 'Q500834'}, {'concept': 'Q12973014'}], 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?l ) WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?r ) ?x WHERE { ?o rdf:type ?i . VALUES ( ?i ) { ( ontology:Q500834 ) ( ontology:Q12973014 ) } } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?z ) WHERE { { VALUES ( ?g ) { ( ontology:Q500834 ) ( ontology:Q12973014 ) } . ?d rdf:type ?g } . ?d property:P641 resource:Q3337306 } } . FILTER ( ?r > ?z ) }
rugby league college football cross country running water polo softball motorcycle racing floorball squash tennis Camogie korfball contract bridge motorcycle sport American football badminton curling rallying rallycross basketball cricket golf baseball handball racquetball ice hockey gymnastics track cycling field hockey cycle sport football lacrosse hurling table tennis Sledge hockey skiing beach handball Goalball women's association football polo volleyball swimming muggle quidditch air racing roller hockey (quad) bandy bobsleigh association football formula racing women's tennis cue sports beach soccer
51
action count
action greater
action union
action find_reverse_tuple_counts
relation sport
type sport
type tournament
action find_reverse_tuple_counts
relation sport
type sport
type sports team
action count
action filter_multi_types
action find_reverse
entity yachting
relation sport
type tournament
type sports team
[[{'concept': 'tournament'}, {'concept': 'sports team'}], 'sport', {'concept': 'sport'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?l ) WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?r ) ?x WHERE { ?o rdf:type ?i . VALUES ( ?i ) { ( ontology:tournament ) ( ontology:sports_team ) } } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?z ) WHERE { { VALUES ( ?g ) { ( ontology:tournament ) ( ontology:sports_team ) } . ?d rdf:type ?g } . ?d property:sport resource:yachting } } . FILTER ( ?r > ?z ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q2736
P641
Q349 Q500834 Q12973014
USER
And also tell me about association football?
(c(Q500834)|c(Q12973014),P641,c(Q349))
action count
action greater
action union
action find_reverse_tuple_counts
relation P641
type Q349
type Q500834
action find_reverse_tuple_counts
relation P641
type Q349
type Q12973014
action count
action filter_multi_types
action find_reverse
entity Q2736
relation P641
type Q500834
type Q12973014
[[{'concept': 'Q500834'}, {'concept': 'Q12973014'}], 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?g ) WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?u ) WHERE { ?z property:P641 resource:Q2736 . { VALUES ( ?j ) { ( ontology:Q500834 ) ( ontology:Q12973014 ) } . ?z rdf:type ?j } } } . FILTER ( ?y > ?u ) . { SELECT DISTINCT ?n ( COUNT ( ?r ) AS ?y ) WHERE { { ?r property:P641 ?n . ?n rdf:type ontology:Q349 . ?r rdf:type ontology:Q500834 } UNION { ?n rdf:type ontology:Q349 . ?r rdf:type ontology:Q12973014 . ?r property:P641 ?n } } GROUP BY ?n } }
association football
action count
action greater
action union
action find_reverse_tuple_counts
relation sport
type sport
type tournament
action find_reverse_tuple_counts
relation sport
type sport
type sports team
action count
action filter_multi_types
action find_reverse
entity association football
relation sport
type tournament
type sports team
[[{'concept': 'tournament'}, {'concept': 'sports team'}], 'sport', {'concept': 'sport'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?g ) WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?u ) WHERE { ?z property:sport resource:association_football . { VALUES ( ?j ) { ( ontology:tournament ) ( ontology:sports_team ) } . ?z rdf:type ?j } } } . FILTER ( ?y > ?u ) . { SELECT DISTINCT ?n ( COUNT ( ?r ) AS ?y ) WHERE { { ?r property:sport ?n . ?n rdf:type ontology:sport . ?r rdf:type ontology:tournament } UNION { ?n rdf:type ontology:sport . ?r rdf:type ontology:sports_team . ?r property:sport ?n } } GROUP BY ?n } }
[]
sport tournament sports team
SYSTEM
3
Q847 Q5372 Q41466
(c(Q500834)|c(Q12973014),P641,c(Q349))
action count
action greater
action union
action find_reverse_tuple_counts
relation P641
type Q349
type Q500834
action find_reverse_tuple_counts
relation P641
type Q349
type Q12973014
action count
action filter_multi_types
action find_reverse
entity Q2736
relation P641
type Q500834
type Q12973014
[ANSWER]
[[{'concept': 'Q500834'}, {'concept': 'Q12973014'}], 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?g ) WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?u ) WHERE { ?z property:P641 resource:Q2736 . { VALUES ( ?j ) { ( ontology:Q500834 ) ( ontology:Q12973014 ) } . ?z rdf:type ?j } } } . FILTER ( ?y > ?u ) . { SELECT DISTINCT ?n ( COUNT ( ?r ) AS ?y ) WHERE { { ?r property:P641 ?n . ?n rdf:type ontology:Q349 . ?r rdf:type ontology:Q500834 } UNION { ?n rdf:type ontology:Q349 . ?r rdf:type ontology:Q12973014 . ?r property:P641 ?n } } GROUP BY ?n } }
tennis basketball ice hockey
3
action count
action greater
action union
action find_reverse_tuple_counts
relation sport
type sport
type tournament
action find_reverse_tuple_counts
relation sport
type sport
type sports team
action count
action filter_multi_types
action find_reverse
entity association football
relation sport
type tournament
type sports team
[[{'concept': 'tournament'}, {'concept': 'sports team'}], 'sport', {'concept': 'sport'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?g ) WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?u ) WHERE { ?z property:sport resource:association_football . { VALUES ( ?j ) { ( ontology:tournament ) ( ontology:sports_team ) } . ?z rdf:type ?j } } } . FILTER ( ?y > ?u ) . { SELECT DISTINCT ?n ( COUNT ( ?r ) AS ?y ) WHERE { { ?r property:sport ?n . ?n rdf:type ontology:sport . ?r rdf:type ontology:tournament } UNION { ?n rdf:type ontology:sport . ?r rdf:type ontology:sports_team . ?r property:sport ?n } } GROUP BY ?n } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P495
Q1048835 Q2342494 Q7725634
USER
Which political territories are the countries of origin of min number of collectables or literary works ?
(c(Q2342494)|c(Q7725634),P495,c(Q1048835))
action argmin
action union
action find_reverse_tuple_counts
relation P495
type Q1048835
type Q2342494
action find_reverse_tuple_counts
relation P495
type Q1048835
type Q7725634
[[{'concept': 'Q2342494'}, {'concept': 'Q7725634'}], 'P495', {'concept': 'Q1048835'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( MIN ( ?h ) AS ?u ) { SELECT DISTINCT ( COUNT ( ?x ) AS ?h ) ?r WHERE { ?x rdf:type ?j . VALUES ( ?j ) { ( ontology:Q2342494 ) ( ontology:Q7725634 ) } } GROUP BY ?r } } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?b ) ?l WHERE { VALUES ( ?z ) { ( ontology:Q2342494 ) ( ontology:Q7725634 ) } . ?g rdf:type ?z } GROUP BY ?l } . FILTER ( ?b = ?u ) }
action argmin
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
[[{'concept': 'collectable'}, {'concept': 'literary work'}], 'country of origin', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( MIN ( ?h ) AS ?u ) { SELECT DISTINCT ( COUNT ( ?x ) AS ?h ) ?r WHERE { ?x rdf:type ?j . VALUES ( ?j ) { ( ontology:collectable ) ( ontology:literary_work ) } } GROUP BY ?r } } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?b ) ?l WHERE { VALUES ( ?z ) { ( ontology:collectable ) ( ontology:literary_work ) } . ?g rdf:type ?z } GROUP BY ?l } . FILTER ( ?b = ?u ) }
[]
political territorial entity collectable literary work
Q1000 Q769 Q691
SYSTEM
Gabon, Grenada, Papua New Guinea
Q1000 Q1747689 Q838261 Q769 Q763 Q1054923 Q13353 Q781 Q1823 Q407199 Q778 Q691 Q234 Q2991382 Q9337 Q23635 Q129286
(c(Q2342494)|c(Q7725634),P495,c(Q1048835))
action argmin
action union
action find_reverse_tuple_counts
relation P495
type Q1048835
type Q2342494
action find_reverse_tuple_counts
relation P495
type Q1048835
type Q7725634
[ANSWERS] are the countries of origin of min number of collectables or literary works
[[{'concept': 'Q2342494'}, {'concept': 'Q7725634'}], 'P495', {'concept': 'Q1048835'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( MIN ( ?h ) AS ?u ) { SELECT DISTINCT ( COUNT ( ?x ) AS ?h ) ?r WHERE { ?x rdf:type ?j . VALUES ( ?j ) { ( ontology:Q2342494 ) ( ontology:Q7725634 ) } } GROUP BY ?r } } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?b ) ?l WHERE { VALUES ( ?z ) { ( ontology:Q2342494 ) ( ontology:Q7725634 ) } . ?g rdf:type ?z } GROUP BY ?l } . FILTER ( ?b = ?u ) }
Gabon Ancient Rome Federal Republic of Yugoslavia Grenada Saint Kitts and Nevis British Hong Kong Montserrat Antigua and Barbuda Aceh Palestinian territories The Bahamas Papua New Guinea Flemish Region County of Provence Flemish Region Bermuda British Raj
Gabon, Grenada and Papua New Guinea are the countries of origin of min number of collectables or literary works
Gabon Grenada Papua New Guinea
action argmin
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
[[{'concept': 'collectable'}, {'concept': 'literary work'}], 'country of origin', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( MIN ( ?h ) AS ?u ) { SELECT DISTINCT ( COUNT ( ?x ) AS ?h ) ?r WHERE { ?x rdf:type ?j . VALUES ( ?j ) { ( ontology:collectable ) ( ontology:literary_work ) } } GROUP BY ?r } } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?b ) ?l WHERE { VALUES ( ?z ) { ( ontology:collectable ) ( ontology:literary_work ) } . ?g rdf:type ?z } GROUP BY ?l } . FILTER ( ?b = ?u ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q769
P1001
Q14660
USER
Which flag has jurisdiction over that political territory ?
(c(Q14660),P1001,Q769)
action filter_type
action find_reverse
entity Q769
relation P1001
type Q14660
[{'concept': 'Q14660'}, 'P1001', 'Q769']
SELECT DISTINCT ?r WHERE { ?r property:P1001 resource:Q769 . ?r rdf:type ontology:Q14660 }
Grenada
action filter_type
action find_reverse
entity Grenada
relation applies to jurisdiction
type flag
[{'concept': 'flag'}, 'applies to jurisdiction', 'Grenada']
SELECT DISTINCT ?r WHERE { ?r property:applies_to_jurisdiction resource:Grenada . ?r rdf:type ontology:flag }
[]
flag
Clarification for simple ques.
Q769
SYSTEM
Did you mean Grenada ?
Q1000 Q769 Q691
(c(Q14660),P1001,Q1000) (c(Q14660),P1001,Q769) (c(Q14660),P1001,Q691)
[ANSWER]
[{'concept': 'Q14660'}, 'P1001', 'Q1000'] [{'concept': 'Q14660'}, 'P1001', 'Q769'] [{'concept': 'Q14660'}, 'P1001', 'Q691']
SELECT DISTINCT ?r WHERE { ?r property:P1001 resource:Q769 . ?r rdf:type ontology:Q14660 }
Gabon Grenada Papua New Guinea
Did you mean Grenada ?
Grenada
[{'concept': 'flag'}, 'applies to jurisdiction', 'Gabon'] [{'concept': 'flag'}, 'applies to jurisdiction', 'Grenada'] [{'concept': 'flag'}, 'applies to jurisdiction', 'Papua New Guinea']
SELECT DISTINCT ?r WHERE { ?r property:applies_to_jurisdiction resource:Grenada . ?r rdf:type ontology:flag }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q14660),P1001,Q769)
[{'concept': 'Q14660'}, 'P1001', 'Q769']
[{'concept': 'flag'}, 'applies to jurisdiction', 'Grenada']
[]
Q103414
SYSTEM
Flag of Grenada
Q103414
(c(Q14660),P1001,Q769)
action filter_type
action find_reverse
entity Q769
relation P1001
type Q14660
G [ANSWER] has jurisdiction over that political territory
[{'concept': 'Q14660'}, 'P1001', 'Q769']
SELECT DISTINCT ?r WHERE { ?r property:P1001 resource:Q769 . ?r rdf:type ontology:Q14660 }
Flag of Grenada
G Flag of Grenada has jurisdiction over that political territory
Flag of Grenada
action filter_type
action find_reverse
entity Grenada
relation applies to jurisdiction
type flag
[{'concept': 'flag'}, 'applies to jurisdiction', 'Grenada']
SELECT DISTINCT ?r WHERE { ?r property:applies_to_jurisdiction resource:Grenada . ?r rdf:type ontology:flag }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q103414
P163
Q1048835
USER
Which political territory has flag named that one ?
(c(Q1048835),P163,Q103414)
action filter_type
action find_reverse
entity Q103414
relation P163
type Q1048835
[{'concept': 'Q1048835'}, 'P163', 'Q103414']
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q1048835 . ?r property:P163 resource:Q103414 }
Flag of Grenada
action filter_type
action find_reverse
entity Flag of Grenada
relation flag
type political territorial entity
[{'concept': 'political territorial entity'}, 'flag', 'Flag of Grenada']
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:political_territorial_entity . ?r property:flag resource:Flag_of_Grenada }
[]
political territorial entity
Q769
SYSTEM
Grenada
Q769
(c(Q1048835),P163,Q103414)
action filter_type
action find_reverse
entity Q103414
relation P163
type Q1048835
[ANSWER] has flag named that one
[{'concept': 'Q1048835'}, 'P163', 'Q103414']
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q1048835 . ?r property:P163 resource:Q103414 }
Grenada
Grenada has flag named that one
Grenada
action filter_type
action find_reverse
entity Flag of Grenada
relation flag
type political territorial entity
[{'concept': 'political territorial entity'}, 'flag', 'Flag of Grenada']
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:political_territorial_entity . ?r property:flag resource:Flag_of_Grenada }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q48409
P180
Q16521 Q391414 Q14660
USER
Which flags express approximately the same number of taxons or architectural elements as flag of Albania ?
(c(Q14660),P180,c(Q16521)|c(Q391414))
action approx
action union
action find_tuple_counts
relation P180
type Q14660
type Q16521
action find_tuple_counts
relation P180
type Q14660
type Q391414
action count
action filter_multi_types
action find
entity Q48409
relation P180
type Q16521
type Q391414
[{'concept': 'Q14660'}, 'P180', [{'concept': 'Q16521'}, {'concept': 'Q391414'}]]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?f ) WHERE { resource:Q48409 property:P180 ?n . { { ?n rdf:type ontology:Q391414 } UNION { ?n rdf:type ontology:Q16521 } } } } . FILTER ( ?t = ?f ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?t ) ?m WHERE { { ?m property:P180 ?r . ?m rdf:type ontology:Q14660 . ?r rdf:type ontology:Q16521 } UNION { ?m property:P180 ?r . ?m rdf:type ontology:Q14660 . ?r rdf:type ontology:Q391414 } } GROUP BY ?m } }
flag of Albania
action approx
action union
action find_tuple_counts
relation depicts
type flag
type taxon
action find_tuple_counts
relation depicts
type flag
type architectural element
action count
action filter_multi_types
action find
entity flag of Albania
relation depicts
type taxon
type architectural element
[{'concept': 'flag'}, 'depicts', [{'concept': 'taxon'}, {'concept': 'architectural element'}]]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?f ) WHERE { resource:flag_of_Albania property:depicts ?n . { { ?n rdf:type ontology:architectural_element } UNION { ?n rdf:type ontology:taxon } } } } . FILTER ( ?t = ?f ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?t ) ?m WHERE { { ?m property:depicts ?r . ?m rdf:type ontology:flag . ?r rdf:type ontology:taxon } UNION { ?m property:depicts ?r . ?m rdf:type ontology:flag . ?r rdf:type ontology:architectural_element } } GROUP BY ?m } }
[]
taxon architectural element flag
Q82194 Q81676 Q160260
SYSTEM
flag of Brazil, flag of Australia, flag of New Zealand
Q270377 Q159872 Q83392 Q1165949 Q235829 Q168935 Q128480 Q42537 Q1426561 Q1074327 Q135034 Q134521 Q484249 Q127179 Q601976 Q252995 Q207518 Q156564 Q163832 Q160260 Q169192 Q124020 Q60149 Q162999 Q48409 Q130458 Q336328 Q105643 Q392167 Q24577771 Q81952 Q104351 Q124329 Q43175 Q127296 Q912854 Q162789 Q79874 Q512175 Q328895 Q130774 Q82194 Q188477 Q41673 Q134874 Q1426630 Q2062018 Q34599 Q673117 Q82236 Q81526 Q167119 Q128347 Q4633 Q83278 Q188609 Q162033 Q1122078 Q102977 Q520966 Q131147 Q202189 Q604735 Q301628 Q637134 Q79198 Q429900 Q80110 Q47214 Q632491 Q165230 Q1064042 Q81676 Q182514 Q1426379
(c(Q14660),P180,c(Q16521)|c(Q391414))
action approx
action union
action find_tuple_counts
relation P180
type Q14660
type Q16521
action find_tuple_counts
relation P180
type Q14660
type Q391414
action count
action filter_multi_types
action find
entity Q48409
relation P180
type Q16521
type Q391414
[ANSWERS] express approximately the same number of taxons or architectural elements as flag of Albania
[{'concept': 'Q14660'}, 'P180', [{'concept': 'Q16521'}, {'concept': 'Q391414'}]]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?f ) WHERE { resource:Q48409 property:P180 ?n . { { ?n rdf:type ontology:Q391414 } UNION { ?n rdf:type ontology:Q16521 } } } } . FILTER ( ?t = ?f ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?t ) ?m WHERE { { ?m property:P180 ?r . ?m rdf:type ontology:Q14660 . ?r rdf:type ontology:Q16521 } UNION { ?m property:P180 ?r . ?m rdf:type ontology:Q14660 . ?r rdf:type ontology:Q391414 } } GROUP BY ?m } }
Flag of Tokelau Flag of Cameroon Flag of Algeria Flag of Ontario flag of Guam Flag of Malaysia flag of Israel flag of the United States of America Flag of the Northwest Territories flag of Tasmania Flag of Antigua and Barbuda Flag of Bhutan Flag of Mozambique flag of Bangladesh Flag of Nova Scotia flag of the Australian Capital Territory flag of Northern Cyprus flag of Alaska Flag of Serbia flag of New Zealand flag of Belize flag of Switzerland Flag of Denmark Flag of Cambodia flag of Albania flag of Egypt Flag of Christmas Island Flag of Tuvalu flag of Quebec flag of the People's Republic of Benin flag of Turkey Flag of Barbados Flag of Angola Flag of Japan Flag of South Korea flag of South Australia Flag of Tunisia flag of Afghanistan Flag of Manitoba Flag of the Cocos (Keeling) Islands flag of Argentina flag of Brazil flag of Samoa flag of India Flag of Bolivia Flag of Nunavut flag of Yukon Flag of Libya Flag of Indiana Flag of Azerbaijan flag of Andorra Flag of the Republic of Macedonia Flag of Pakistan Flag of Cyprus flag of the United Kingdom Flag of Palau flag of Bosnia and Herzegovina Flag of Alberta Flag of Mauritania Flag of Rhode Island Flag of the People's Republic of China Flag of Niue Flag of Sint Maarten Flag of Mississippi flag of British Columbia Flag of Vatican City Flag of Saba flag of Canada flag of the Russian Soviet Federative Socialist Republic Flag of Arizona flag of the Soviet Union flag of New South Wales flag of Australia Flag of Fiji Flag of Amsterdam
Flag of Brazil, flag of Australia and flag of New Zealand express approximately the same number of taxons or architectural elements as flag of Albania
flag of Brazil flag of Australia flag of New Zealand
action approx
action union
action find_tuple_counts
relation depicts
type flag
type taxon
action find_tuple_counts
relation depicts
type flag
type architectural element
action count
action filter_multi_types
action find
entity flag of Albania
relation depicts
type taxon
type architectural element
[{'concept': 'flag'}, 'depicts', [{'concept': 'taxon'}, {'concept': 'architectural element'}]]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?f ) WHERE { resource:flag_of_Albania property:depicts ?n . { { ?n rdf:type ontology:architectural_element } UNION { ?n rdf:type ontology:taxon } } } } . FILTER ( ?t = ?f ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?t ) ?m WHERE { { ?m property:depicts ?r . ?m rdf:type ontology:flag . ?r rdf:type ontology:taxon } UNION { ?m property:depicts ?r . ?m rdf:type ontology:flag . ?r rdf:type ontology:architectural_element } } GROUP BY ?m } }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q82194 Q81676 Q160260
P462
Q1075
USER
What are the colors that those flags are associated with ?
(Q82194,P462,c(Q1075)) (Q81676,P462,c(Q1075)) (Q160260,P462,c(Q1075))
action filter_type
action find
entity prev_answer
relation P462
type Q1075
['Q82194', 'P462', {'concept': 'Q1075'}] ['Q81676', 'P462', {'concept': 'Q1075'}] ['Q160260', 'P462', {'concept': 'Q1075'}]
SELECT DISTINCT ?u WHERE { VALUES ( ?e ) { ( resource:Q270377 ) ( resource:Q159872 ) ( resource:Q83392 ) } . ?u rdf:type ontology:Q1075 . ?e property:P462 ?u }
flag of Brazil flag of Australia flag of New Zealand
action filter_type
action find
entity prev_answer
relation color
type color
['flag of Brazil', 'color', {'concept': 'color'}] ['flag of Australia', 'color', {'concept': 'color'}] ['flag of New Zealand', 'color', {'concept': 'color'}]
SELECT DISTINCT ?u WHERE { VALUES ( ?e ) { ( resource:Flag_of_Tokelau ) ( resource:Flag_of_Cameroon ) ( resource:Flag_of_Algeria ) } . ?u rdf:type ontology:color . ?e property:color ?u }
[]
color
Q943 Q1088 Q3133
SYSTEM
yellow, blue, green
Q943 Q1088 Q3133 Q3142 Q1088 Q3142 Q1088
(Q82194,P462,c(Q1075)) (Q81676,P462,c(Q1075)) (Q160260,P462,c(Q1075))
action filter_type
action find
entity prev_answer
relation P462
type Q1075
The colors that those flags are associated with are [ANSWERS]
['Q82194', 'P462', {'concept': 'Q1075'}] ['Q81676', 'P462', {'concept': 'Q1075'}] ['Q160260', 'P462', {'concept': 'Q1075'}]
SELECT DISTINCT ?u WHERE { VALUES ( ?e ) { ( resource:Q270377 ) ( resource:Q159872 ) ( resource:Q83392 ) } . ?u rdf:type ontology:Q1075 . ?e property:P462 ?u }
yellow blue green red blue red blue
The colors that those flags are associated with are yellow, blue and green
yellow blue green
action filter_type
action find
entity prev_answer
relation color
type color
['flag of Brazil', 'color', {'concept': 'color'}] ['flag of Australia', 'color', {'concept': 'color'}] ['flag of New Zealand', 'color', {'concept': 'color'}]
SELECT DISTINCT ?u WHERE { VALUES ( ?e ) { ( resource:Flag_of_Tokelau ) ( resource:Flag_of_Cameroon ) ( resource:Flag_of_Algeria ) } . ?u rdf:type ontology:color . ?e property:color ?u }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1000
P17
Q1048835
USER
Which political territory is Gabon situated in ?
(Q1000,P17,c(Q1048835))
action filter_type
action find
entity Q1000
relation P17
type Q1048835
['Q1000', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?k WHERE { resource:Q1000 property:P17 ?k . ?k rdf:type ontology:Q1048835 }
Gabon
action filter_type
action find
entity Gabon
relation country
type political territorial entity
['Gabon', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?k WHERE { resource:Gabon property:country ?k . ?k rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q1000
SYSTEM
Gabon
Q1000
(Q1000,P17,c(Q1048835))
action filter_type
action find
entity Q1000
relation P17
type Q1048835
[ANSWER] is situated in [ANSWER]
['Q1000', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?k WHERE { resource:Q1000 property:P17 ?k . ?k rdf:type ontology:Q1048835 }
Gabon
Gabon is situated in Gabon
Gabon
action filter_type
action find
entity Gabon
relation country
type political territorial entity
['Gabon', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?k WHERE { resource:Gabon property:country ?k . ?k rdf:type ontology:political_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q263093
Q1048835
USER
And what about Frankenfels?
(Q263093,P17,c(Q1048835))
action filter_type
action find
entity Q263093
relation P17
type Q1048835
['Q263093', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?q WHERE { resource:Q263093 property:P17 ?q . ?q rdf:type ontology:Q1048835 }
Frankenfels
action filter_type
action find
entity Frankenfels
relation country
type political territorial entity
['Frankenfels', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:Frankenfels property:country ?q . ?q rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q40
SYSTEM
Austria
Q40
(Q263093,P17,c(Q1048835))
action filter_type
action find
entity Q263093
relation P17
type Q1048835
[ANSWER]
['Q263093', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?q WHERE { resource:Q263093 property:P17 ?q . ?q rdf:type ontology:Q1048835 }
Austria
Austria
action filter_type
action find
entity Frankenfels
relation country
type political territorial entity
['Frankenfels', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:Frankenfels property:country ?q . ?q rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators|Indirect
P138
Q486972 Q2712963
USER
How many human settlements or abstract nouns are the etymology of that political territory ?
(Q40,P138,c(Q486972)) (Q40,P138,c(Q2712963)) (Q40,P138,c(Q486972)) (Q40,P138,c(Q2712963))
action count
action union
action filter_type
action find
entity Q40
relation P138
type Q486972
action filter_type
action find
entity Q40
relation P138
type Q2712963
['Q40', 'P138', {'concept': 'Q486972'}] ['Q40', 'P138', {'concept': 'Q2712963'}] ['Q40', 'P138', {'concept': 'Q486972'}] ['Q40', 'P138', {'concept': 'Q2712963'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?o ) WHERE { { resource:Q40 property:P138 ?n . ?n rdf:type ontology:Q2712963 } UNION { resource:Q40 property:P138 ?n . ?n rdf:type ontology:Q486972 } }
action count
action union
action filter_type
action find
entity Austria
relation named after
type human settlement
action filter_type
action find
entity Austria
relation named after
type abstract noun
['Austria', 'named after', {'concept': 'human settlement'}] ['Austria', 'named after', {'concept': 'abstract noun'}] ['Austria', 'named after', {'concept': 'human settlement'}] ['Austria', 'named after', {'concept': 'abstract noun'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?o ) WHERE { { resource:Austria property:named_after ?n . ?n rdf:type ontology:abstract_noun } UNION { resource:Austria property:named_after ?n . ?n rdf:type ontology:human_settlement } }
[]
human settlement abstract noun
SYSTEM
2
Q684 Q510604
(Q40,P138,c(Q486972)) (Q40,P138,c(Q2712963)) (Q40,P138,c(Q486972)) (Q40,P138,c(Q2712963))
action count
action union
action filter_type
action find
entity Q40
relation P138
type Q486972
action filter_type
action find
entity Q40
relation P138
type Q2712963
[ANSWER]
['Q40', 'P138', {'concept': 'Q486972'}] ['Q40', 'P138', {'concept': 'Q2712963'}] ['Q40', 'P138', {'concept': 'Q486972'}] ['Q40', 'P138', {'concept': 'Q2712963'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?o ) WHERE { { resource:Q40 property:P138 ?n . ?n rdf:type ontology:Q2712963 } UNION { resource:Q40 property:P138 ?n . ?n rdf:type ontology:Q486972 } }
east Raabs an der Thaya
2
action count
action union
action filter_type
action find
entity Austria
relation named after
type human settlement
action filter_type
action find
entity Austria
relation named after
type abstract noun
['Austria', 'named after', {'concept': 'human settlement'}] ['Austria', 'named after', {'concept': 'abstract noun'}] ['Austria', 'named after', {'concept': 'human settlement'}] ['Austria', 'named after', {'concept': 'abstract noun'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?o ) WHERE { { resource:Austria property:named_after ?n . ?n rdf:type ontology:abstract_noun } UNION { resource:Austria property:named_after ?n . ?n rdf:type ontology:human_settlement } }
[]
Logical Reasoning (All)
Logical|Difference|Single_Relation
Q145 Q769
P27
Q502895
USER
Which people are a citizen of Grenada but not United Kingdom ?
AND((c(Q502895),P27,Q769), NOT((c(Q502895),P27,Q145)))
action filter_type
action difference
action find_reverse
entity Q769
relation P27
action find_reverse
entity Q145
relation P27
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P27', 'Q769'], {'NOT': [[{'concept': 'Q502895'}, 'P27', 'Q145']]}]}
SELECT DISTINCT ?e WHERE { ?e property:P27 resource:Q769 . MINUS { ?e property:P27 resource:Q145 } . ?e rdf:type ontology:Q502895 }
United Kingdom Grenada
action filter_type
action difference
action find_reverse
entity Grenada
relation country of citizenship
action find_reverse
entity United Kingdom
relation country of citizenship
type common name
{'AND': [[{'concept': 'common name'}, 'country of citizenship', 'Grenada'], {'NOT': [[{'concept': 'common name'}, 'country of citizenship', 'United Kingdom']]}]}
SELECT DISTINCT ?e WHERE { ?e property:country_of_citizenship resource:Grenada . MINUS { ?e property:country_of_citizenship resource:United_Kingdom } . ?e rdf:type ontology:common_name }
[]
common name
Q3993192 Q7489006 Q5449780 Q6446727 Q4754910 Q4754717 Q24955988 Q7154407 Q1776271 Q118047
SYSTEM
Some of them are Tony Bedeau, Shanon Phillip, Finbar Williams, Kurt Felix, Andre Winner, Andray Baptiste, Anderson Peters, Paul Williams, Craig Rocastle, Bernard Coard
Q816529 Q6410254 Q3370645 Q5257480 Q15993569 Q6758261 Q5731411 Q26772688 Q7360525 Q1655 Q6313507 Q24175360 Q24955988 Q3817628 Q118047 Q709738 Q953795 Q7494080 Q23322176 Q4766355 Q1235746 Q11767328 Q2001138 Q187905 Q5049421 Q4118182 Q26721333 Q495077 Q4754754 Q5449780 Q5407440 Q20630695 Q5233381 Q7982472 Q6446727 Q2979441 Q5232748 Q26775183 Q4699525 Q4118212 Q3066232 Q11964294 Q5405010 Q7371752 Q2373658 Q6530907 Q3814389 Q356480 Q636298 Q5543548 Q468234 Q370110 Q7613264 Q7843980 Q6313411 Q27680444 Q9310267 Q644652 Q5259290 Q380137 Q4727341 Q7154407 Q6778337 Q7032248 Q26831200 Q6708694 Q1547811 Q57796 Q289917 Q6832531 Q16232438 Q6124935 Q1276896 Q16146183 Q26704752 Q23638537 Q16223468 Q6450244 Q4793454 Q5267759 Q20030862 Q26701397 Q5264775 Q7526809 Q1981856 Q7360164 Q6483214 Q205876 Q14375081 Q4754717 Q4118219 Q6162772 Q5450578 Q5455688 Q3618478 Q16221788 Q203046 Q4351590 Q1776271 Q4732747 Q4754910 Q3814807 Q871955 Q1984818 Q7108822 Q5386571 Q5687822 Q7489006 Q58231 Q3993192
AND((c(Q502895),P27,Q769), NOT((c(Q502895),P27,Q145)))
action filter_type
action difference
action find_reverse
entity Q769
relation P27
action find_reverse
entity Q145
relation P27
type Q502895
[ANSWERS] are a citizen of Grenada but not United Kingdom
{'AND': [[{'concept': 'Q502895'}, 'P27', 'Q769'], {'NOT': [[{'concept': 'Q502895'}, 'P27', 'Q145']]}]}
SELECT DISTINCT ?e WHERE { ?e property:P27 resource:Q769 . MINUS { ?e property:P27 resource:Q145 } . ?e rdf:type ontology:Q502895 }
Ben Jones Kimroy Redhead Joel Redhead Denis Rennie Chrysler Thomas Marcus Julien Henson Cuffie Andon Mitchell Rolande Moses Kirani James Junior Williams Lindon Victor Anderson Peters Kwan Baptiste Bernard Coard Paul Scoon Hudson Austin Shemel Louison Payton Hazzard Ann David-Antoine Dolliver Nelson Marc Marshall Shalrie Joseph Daniel Williams Cassim Langaigne Shane Rennie Colleen Felix Andrea St. Bernard Andre Charles Finbar Williams Eugene Licorish Jamal Charles David Emmanuel Wendell Rennie Kurt Felix Clive Murray David Cyrus Natalia Vincent Ajamu Patrick Modeste Rondell Bartholomew Cécile La Grenade Ettienne Richardson Row Lewis Sydney Anicetus Charles Leslie Hutchinson Kellon Baptiste Jason Roberts Alleyne Francique George Prime Maurice Bishop Keith Mitchell Steve Mark Trish Bartholomew Junior Paul Lamuel A. Stanislaus Richard Britton Dwayne Leo Denron Daniel Carlyle Glean Alister Hughes Paul Williams Marvin Frederick Nigel Bishop Geraldine McQueen Lyndon Antoine Vincent Darius Tillman Thomas Étienne Marchand Michael Mark Sonika Jake Rennie Herbert Blaize Melissa Ashby Alleyne Lett Anthony Modeste Johnathan Steele Kwasi Paul Hilda Bynoe Devon Roberts Bralon Taplin Walt Williams Desmond Noel Sir Galba Jennifer Hosten Roland Bhola Lancaster Joseph Mighty Sparrow Esau Simpson Andray Baptiste Ricky Charles Jason James Finley Jeffrey Fitzroy Bedeau Anthony Augustine Omar Hughes Eric Gairy Janelle Redhead Craig Rocastle Allison George Andre Winner Kevin Edwards Kithson Bain Nicholas Brathwaite Otis Roberts Eric George Hazel-Ann Regis Shanon Phillip Peter David Tony Bedeau
Tony Bedeau, Shanon Phillip, Finbar Williams, Kurt Felix, Andre Winner, Andray Baptiste, Anderson Peters, Paul Williams, Craig Rocastle and Bernard Coard are a citizen of Grenada but not United Kingdom
Tony Bedeau Shanon Phillip Finbar Williams Kurt Felix Andre Winner Andray Baptiste Anderson Peters Paul Williams Craig Rocastle Bernard Coard
action filter_type
action difference
action find_reverse
entity Grenada
relation country of citizenship
action find_reverse
entity United Kingdom
relation country of citizenship
type common name
{'AND': [[{'concept': 'common name'}, 'country of citizenship', 'Grenada'], {'NOT': [[{'concept': 'common name'}, 'country of citizenship', 'United Kingdom']]}]}
SELECT DISTINCT ?e WHERE { ?e property:country_of_citizenship resource:Grenada . MINUS { ?e property:country_of_citizenship resource:United_Kingdom } . ?e rdf:type ontology:common_name }
[]