Simple Question (Direct)
Simple Question
Q3569589
P27
Q15617994
USER
Which administrative territory is the native country of Wojciech Grzyb ?
(Q3569589,P27,c(Q15617994))
action filter_type
action find
entity Q3569589
relation P27
type Q15617994
['Q3569589', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?w WHERE { resource:Q3569589 property:P27 ?w . ?w rdf:type ontology:Q15617994 }
Wojciech Grzyb
action filter_type
action find
entity Wojciech Grzyb
relation country of citizenship
type designation for an administrative territorial entity
['Wojciech Grzyb', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:Wojciech_Grzyb property:country_of_citizenship ?w . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q36
SYSTEM
Poland
Q36
(Q3569589,P27,c(Q15617994))
action filter_type
action find
entity Q3569589
relation P27
type Q15617994
In [ANSWER] is the native country of Wojciech Grzyb
['Q3569589', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?w WHERE { resource:Q3569589 property:P27 ?w . ?w rdf:type ontology:Q15617994 }
Poland
In Poland is the native country of Wojciech Grzyb
Poland
action filter_type
action find
entity Wojciech Grzyb
relation country of citizenship
type designation for an administrative territorial entity
['Wojciech Grzyb', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:Wojciech_Grzyb property:country_of_citizenship ?w . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3569589
P21
Q290
USER
Which sex does Wojciech Grzyb have ?
(Q3569589,P21,c(Q290))
action filter_type
action find
entity Q3569589
relation P21
type Q290
['Q3569589', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?y WHERE { resource:Q3569589 property:P21 ?y . ?y rdf:type ontology:Q290 }
Wojciech Grzyb
action filter_type
action find
entity Wojciech Grzyb
relation gender
type sex
['Wojciech Grzyb', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?y WHERE { resource:Wojciech_Grzyb property:gender ?y . ?y rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q3569589,P21,c(Q290))
action filter_type
action find
entity Q3569589
relation P21
type Q290
Wojciech Grzyb has a [ANSWER]
['Q3569589', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?y WHERE { resource:Q3569589 property:P21 ?y . ?y rdf:type ontology:Q290 }
male
Wojciech Grzyb has a male
male
action filter_type
action find
entity Wojciech Grzyb
relation gender
type sex
['Wojciech Grzyb', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?y WHERE { resource:Wojciech_Grzyb property:gender ?y . ?y rdf:type ontology:sex }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q12324029
Q290
USER
And how about Laurids Rudebeck?
(Q12324029,P21,c(Q290))
action filter_type
action find
entity Q12324029
relation P21
type Q290
['Q12324029', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?i WHERE { resource:Q12324029 property:P21 ?i . ?i rdf:type ontology:Q290 }
Laurids Rudebeck
action filter_type
action find
entity Laurids Rudebeck
relation gender
type sex
['Laurids Rudebeck', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?i WHERE { resource:Laurids_Rudebeck property:gender ?i . ?i rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q12324029,P21,c(Q290))
action filter_type
action find
entity Q12324029
relation P21
type Q290
[ANSWER]
['Q12324029', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?i WHERE { resource:Q12324029 property:P21 ?i . ?i rdf:type ontology:Q290 }
male
male
action filter_type
action find
entity Laurids Rudebeck
relation gender
type sex
['Laurids Rudebeck', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?i WHERE { resource:Laurids_Rudebeck property:gender ?i . ?i rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q12324029
P6
Q3976655
USER
Which Dutch administrative territory has that person as its administrative leader ?
(c(Q3976655),P6,Q6581097)
action filter_type
action find_reverse
entity Q12324029
relation P6
type Q3976655
[{'concept': 'Q3976655'}, 'P6', 'Q6581097']
SELECT DISTINCT ?a WHERE { ?a property:P6 resource:Q12324029 . ?a rdf:type ontology:Q3976655 }
Laurids Rudebeck
action filter_type
action find_reverse
entity Laurids Rudebeck
relation head of government
type administrative territorial entity of Denmark
[{'concept': 'administrative territorial entity of Denmark'}, 'head of government', 'male']
SELECT DISTINCT ?a WHERE { ?a property:head_of_government resource:Laurids_Rudebeck . ?a rdf:type ontology:administrative_territorial_entity_of_Denmark }
[]
administrative territorial entity of Denmark
Q3162907
SYSTEM
Tønder Municipality
Q3162907
(c(Q3976655),P6,Q6581097)
action filter_type
action find_reverse
entity Q12324029
relation P6
type Q3976655
[ANSWER] has that person as its administrative leader
[{'concept': 'Q3976655'}, 'P6', 'Q6581097']
SELECT DISTINCT ?a WHERE { ?a property:P6 resource:Q12324029 . ?a rdf:type ontology:Q3976655 }
Tønder Municipality
Tønder Municipality has that person as its administrative leader
Tønder Municipality
action filter_type
action find_reverse
entity Laurids Rudebeck
relation head of government
type administrative territorial entity of Denmark
[{'concept': 'administrative territorial entity of Denmark'}, 'head of government', 'male']
SELECT DISTINCT ?a WHERE { ?a property:head_of_government resource:Laurids_Rudebeck . ?a rdf:type ontology:administrative_territorial_entity_of_Denmark }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q1048835 Q15617994
USER
Which political territories holds diplomatic relationship with min number of administrative territories ?
(c(Q15617994),P530,Q766)
action argmin
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
[{'concept': 'Q15617994'}, 'P530', 'Q766']
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?q ) AS ?f ) WHERE { ?i property:P530 ?q . ?q rdf:type ontology:Q15617994 . ?i rdf:type ontology:Q1048835 } GROUP BY ?i } . FILTER ( ?f = ?o ) . { SELECT DISTINCT ( MIN ( ?r ) AS ?o ) { SELECT DISTINCT ?y ( COUNT ( ?j ) AS ?r ) WHERE { ?y property:P530 ?j . ?y rdf:type ontology:Q1048835 . ?j rdf:type ontology:Q15617994 } GROUP BY ?y } } }
action argmin
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Jamaica']
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?q ) AS ?f ) WHERE { ?i property:diplomatic_relation ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . ?i rdf:type ontology:political_territorial_entity } GROUP BY ?i } . FILTER ( ?f = ?o ) . { SELECT DISTINCT ( MIN ( ?r ) AS ?o ) { SELECT DISTINCT ?y ( COUNT ( ?j ) AS ?r ) WHERE { ?y property:diplomatic_relation ?j . ?y rdf:type ontology:political_territorial_entity . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?y } } }
[]
political territorial entity designation for an administrative territorial entity
Q685 Q691
SYSTEM
Solomon Islands, Papua New Guinea
Q685 Q691
(c(Q15617994),P530,Q766)
action argmin
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
[ANSWERS] hold diplomatic relationship with min number of administrative territories
[{'concept': 'Q15617994'}, 'P530', 'Q766']
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?q ) AS ?f ) WHERE { ?i property:P530 ?q . ?q rdf:type ontology:Q15617994 . ?i rdf:type ontology:Q1048835 } GROUP BY ?i } . FILTER ( ?f = ?o ) . { SELECT DISTINCT ( MIN ( ?r ) AS ?o ) { SELECT DISTINCT ?y ( COUNT ( ?j ) AS ?r ) WHERE { ?y property:P530 ?j . ?y rdf:type ontology:Q1048835 . ?j rdf:type ontology:Q15617994 } GROUP BY ?y } } }
Solomon Islands Papua New Guinea
Solomon Islands and Papua New Guinea hold diplomatic relationship with min number of administrative territories
Solomon Islands Papua New Guinea
action argmin
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Jamaica']
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?q ) AS ?f ) WHERE { ?i property:diplomatic_relation ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . ?i rdf:type ontology:political_territorial_entity } GROUP BY ?i } . FILTER ( ?f = ?o ) . { SELECT DISTINCT ( MIN ( ?r ) AS ?o ) { SELECT DISTINCT ?y ( COUNT ( ?j ) AS ?r ) WHERE { ?y property:diplomatic_relation ?j . ?y rdf:type ontology:political_territorial_entity . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?y } } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q36
P376
Q16889133
USER
Which class is known to be the location of Poland ?
(Q36,P376,c(Q16889133))
action filter_type
action find
entity Q36
relation P376
type Q16889133
['Q36', 'P376', {'concept': 'Q16889133'}]
SELECT DISTINCT ?c WHERE { resource:Q36 property:P376 ?c . ?c rdf:type ontology:Q16889133 }
Poland
action filter_type
action find
entity Poland
relation located on astronomical body
type class
['Poland', 'located on astronomical body', {'concept': 'class'}]
SELECT DISTINCT ?c WHERE { resource:Poland property:located_on_astronomical_body ?c . ?c rdf:type ontology:class }
[]
class
Q2
SYSTEM
Earth
Q2
(Q36,P376,c(Q16889133))
action filter_type
action find
entity Q36
relation P376
type Q16889133
[ANSWER] is known to be the location of Poland
['Q36', 'P376', {'concept': 'Q16889133'}]
SELECT DISTINCT ?c WHERE { resource:Q36 property:P376 ?c . ?c rdf:type ontology:Q16889133 }
Earth
Earth is known to be the location of Poland
Earth
action filter_type
action find
entity Poland
relation located on astronomical body
type class
['Poland', 'located on astronomical body', {'concept': 'class'}]
SELECT DISTINCT ?c WHERE { resource:Poland property:located_on_astronomical_body ?c . ?c rdf:type ontology:class }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q24065211
Q16889133
USER
And what about Rincon?
(Q24065211,P376,c(Q16889133))
action filter_type
action find
entity Q24065211
relation P376
type Q16889133
['Q24065211', 'P376', {'concept': 'Q16889133'}]
SELECT DISTINCT ?s WHERE { resource:Q24065211 property:P376 ?s . ?s rdf:type ontology:Q16889133 }
Rincon
action filter_type
action find
entity Rincon
relation located on astronomical body
type class
['Rincon', 'located on astronomical body', {'concept': 'class'}]
SELECT DISTINCT ?s WHERE { resource:Rincon property:located_on_astronomical_body ?s . ?s rdf:type ontology:class }
[]
class
Q111
SYSTEM
Mars
Q111
(Q24065211,P376,c(Q16889133))
action filter_type
action find
entity Q24065211
relation P376
type Q16889133
[ANSWER]
['Q24065211', 'P376', {'concept': 'Q16889133'}]
SELECT DISTINCT ?s WHERE { resource:Q24065211 property:P376 ?s . ?s rdf:type ontology:Q16889133 }
Mars
Mars
action filter_type
action find
entity Rincon
relation located on astronomical body
type class
['Rincon', 'located on astronomical body', {'concept': 'class'}]
SELECT DISTINCT ?s WHERE { resource:Rincon property:located_on_astronomical_body ?s . ?s rdf:type ontology:class }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q2596432
P138
Q15617994 Q811979 Q2088357
USER
How many administrative territories are greater number of architectural structures or musical ensembles named after than Euvelgunne ?
(c(Q811979)|c(Q2088357),P138,c(Q15617994))
action count
action greater
action union
action find_reverse_tuple_counts
relation P138
type Q15617994
type Q811979
action find_reverse_tuple_counts
relation P138
type Q15617994
type Q2088357
action count
action filter_multi_types
action find_reverse
entity Q2596432
relation P138
type Q811979
type Q2088357
[[{'concept': 'Q811979'}, {'concept': 'Q2088357'}], 'P138', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?j ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?e ) AS ?g ) WHERE { { ?e property:P138 ?w . ?w rdf:type ontology:Q15617994 . ?e rdf:type ontology:Q2088357 } UNION { ?e property:P138 ?w . ?w rdf:type ontology:Q15617994 . ?e rdf:type ontology:Q811979 } } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?o ) WHERE { ?r property:P138 resource:Q2596432 . { { ?r rdf:type ontology:Q811979 } UNION { ?r rdf:type ontology:Q2088357 } } } } . FILTER ( ?g > ?o ) }
Euvelgunne
action count
action greater
action union
action find_reverse_tuple_counts
relation named after
type designation for an administrative territorial entity
type architectural structure
action find_reverse_tuple_counts
relation named after
type designation for an administrative territorial entity
type musical ensemble
action count
action filter_multi_types
action find_reverse
entity Euvelgunne
relation named after
type architectural structure
type musical ensemble
[[{'concept': 'architectural structure'}, {'concept': 'musical ensemble'}], 'named after', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?j ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?e ) AS ?g ) WHERE { { ?e property:named_after ?w . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . ?e rdf:type ontology:musical_ensemble } UNION { ?e property:named_after ?w . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . ?e rdf:type ontology:architectural_structure } } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?o ) WHERE { ?r property:named_after resource:Euvelgunne . { { ?r rdf:type ontology:architectural_structure } UNION { ?r rdf:type ontology:musical_ensemble } } } } . FILTER ( ?g > ?o ) }
[]
designation for an administrative territorial entity architectural structure musical ensemble
SYSTEM
31
Q804 Q801 Q800 Q419 Q490521 Q786 Q155 Q739 Q733 Q736 Q189 Q1028 Q626792 Q1243 Q3105 Q80599 Q792 Q33 Q30 Q38 Q750 Q77 Q176 Q717 Q29 Q222 Q228 Q811 Q774 Q629664 Q47578
(c(Q811979)|c(Q2088357),P138,c(Q15617994))
action count
action greater
action union
action find_reverse_tuple_counts
relation P138
type Q15617994
type Q811979
action find_reverse_tuple_counts
relation P138
type Q15617994
type Q2088357
action count
action filter_multi_types
action find_reverse
entity Q2596432
relation P138
type Q811979
type Q2088357
[ANSWER]
[[{'concept': 'Q811979'}, {'concept': 'Q2088357'}], 'P138', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?j ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?e ) AS ?g ) WHERE { { ?e property:P138 ?w . ?w rdf:type ontology:Q15617994 . ?e rdf:type ontology:Q2088357 } UNION { ?e property:P138 ?w . ?w rdf:type ontology:Q15617994 . ?e rdf:type ontology:Q811979 } } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?o ) WHERE { ?r property:P138 resource:Q2596432 . { { ?r rdf:type ontology:Q811979 } UNION { ?r rdf:type ontology:Q2088357 } } } } . FILTER ( ?g > ?o ) }
Panama Israel Costa Rica Peru Strausberg Dominican Republic Brazil Colombia Paraguay Ecuador Iceland Morocco Fehrbellin Veneto Vosges Auletta El Salvador Finland United States of America Italy Bolivia Uruguay Quebec Venezuela Spain Albania Andorra Nicaragua Guatemala Arbesbach Vittorio Veneto
31
action count
action greater
action union
action find_reverse_tuple_counts
relation named after
type designation for an administrative territorial entity
type architectural structure
action find_reverse_tuple_counts
relation named after
type designation for an administrative territorial entity
type musical ensemble
action count
action filter_multi_types
action find_reverse
entity Euvelgunne
relation named after
type architectural structure
type musical ensemble
[[{'concept': 'architectural structure'}, {'concept': 'musical ensemble'}], 'named after', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?j ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?e ) AS ?g ) WHERE { { ?e property:named_after ?w . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . ?e rdf:type ontology:musical_ensemble } UNION { ?e property:named_after ?w . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . ?e rdf:type ontology:architectural_structure } } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?o ) WHERE { ?r property:named_after resource:Euvelgunne . { { ?r rdf:type ontology:architectural_structure } UNION { ?r rdf:type ontology:musical_ensemble } } } } . FILTER ( ?g > ?o ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q570035
P138
Q15617994 Q811979 Q2088357
USER
And how about Hillesheim?
(c(Q811979)|c(Q2088357),P138,c(Q15617994))
action count
action greater
action union
action find_reverse_tuple_counts
relation P138
type Q15617994
type Q811979
action find_reverse_tuple_counts
relation P138
type Q15617994
type Q2088357
action count
action filter_multi_types
action find_reverse
entity Q570035
relation P138
type Q811979
type Q2088357
[[{'concept': 'Q811979'}, {'concept': 'Q2088357'}], 'P138', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?b ) WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?g ) WHERE { ?f property:P138 resource:Q570035 . { { ?f rdf:type ontology:Q811979 } UNION { ?f rdf:type ontology:Q2088357 } } } } . FILTER ( ?k > ?g ) . { SELECT DISTINCT ?n ( COUNT ( ?w ) AS ?k ) WHERE { ?w rdf:type ?j . VALUES ( ?j ) { ( ontology:Q811979 ) ( ontology:Q2088357 ) } } GROUP BY ?n } }
Hillesheim
action count
action greater
action union
action find_reverse_tuple_counts
relation named after
type designation for an administrative territorial entity
type architectural structure
action find_reverse_tuple_counts
relation named after
type designation for an administrative territorial entity
type musical ensemble
action count
action filter_multi_types
action find_reverse
entity Hillesheim
relation named after
type architectural structure
type musical ensemble
[[{'concept': 'architectural structure'}, {'concept': 'musical ensemble'}], 'named after', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?b ) WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?g ) WHERE { ?f property:named_after resource:Hillesheim . { { ?f rdf:type ontology:architectural_structure } UNION { ?f rdf:type ontology:musical_ensemble } } } } . FILTER ( ?k > ?g ) . { SELECT DISTINCT ?n ( COUNT ( ?w ) AS ?k ) WHERE { ?w rdf:type ?j . VALUES ( ?j ) { ( ontology:architectural_structure ) ( ontology:musical_ensemble ) } } GROUP BY ?n } }
[]
designation for an administrative territorial entity architectural structure musical ensemble
SYSTEM
31
Q804 Q801 Q800 Q419 Q490521 Q786 Q155 Q739 Q733 Q736 Q189 Q1028 Q626792 Q1243 Q3105 Q80599 Q792 Q33 Q30 Q38 Q750 Q77 Q176 Q717 Q29 Q222 Q228 Q811 Q774 Q629664 Q47578
(c(Q811979)|c(Q2088357),P138,c(Q15617994))
action count
action greater
action union
action find_reverse_tuple_counts
relation P138
type Q15617994
type Q811979
action find_reverse_tuple_counts
relation P138
type Q15617994
type Q2088357
action count
action filter_multi_types
action find_reverse
entity Q570035
relation P138
type Q811979
type Q2088357
[ANSWER]
[[{'concept': 'Q811979'}, {'concept': 'Q2088357'}], 'P138', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?b ) WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?g ) WHERE { ?f property:P138 resource:Q570035 . { { ?f rdf:type ontology:Q811979 } UNION { ?f rdf:type ontology:Q2088357 } } } } . FILTER ( ?k > ?g ) . { SELECT DISTINCT ?n ( COUNT ( ?w ) AS ?k ) WHERE { ?w rdf:type ?j . VALUES ( ?j ) { ( ontology:Q811979 ) ( ontology:Q2088357 ) } } GROUP BY ?n } }
Panama Israel Costa Rica Peru Strausberg Dominican Republic Brazil Colombia Paraguay Ecuador Iceland Morocco Fehrbellin Veneto Vosges Auletta El Salvador Finland United States of America Italy Bolivia Uruguay Quebec Venezuela Spain Albania Andorra Nicaragua Guatemala Arbesbach Vittorio Veneto
31
action count
action greater
action union
action find_reverse_tuple_counts
relation named after
type designation for an administrative territorial entity
type architectural structure
action find_reverse_tuple_counts
relation named after
type designation for an administrative territorial entity
type musical ensemble
action count
action filter_multi_types
action find_reverse
entity Hillesheim
relation named after
type architectural structure
type musical ensemble
[[{'concept': 'architectural structure'}, {'concept': 'musical ensemble'}], 'named after', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?b ) WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?g ) WHERE { ?f property:named_after resource:Hillesheim . { { ?f rdf:type ontology:architectural_structure } UNION { ?f rdf:type ontology:musical_ensemble } } } } . FILTER ( ?k > ?g ) . { SELECT DISTINCT ?n ( COUNT ( ?w ) AS ?k ) WHERE { ?w rdf:type ?j . VALUES ( ?j ) { ( ontology:architectural_structure ) ( ontology:musical_ensemble ) } } GROUP BY ?n } }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q1048835 Q15617994
USER
Which administrative territories are known to have diplomatic connections with exactly 3 political territories ?
(c(Q15617994),P530,c(Q1048835))
action equal
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
value 3
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?d WHERE { FILTER ( ?q = 3 ) . { SELECT DISTINCT ?d ( COUNT ( ?k ) AS ?q ) WHERE { ?d property:P530 ?k . ?k rdf:type ontology:Q1048835 . ?d rdf:type ontology:Q15617994 } GROUP BY ?d } }
action equal
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
value 3
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?d WHERE { FILTER ( ?q = 3 ) . { SELECT DISTINCT ?d ( COUNT ( ?k ) AS ?q ) WHERE { ?d property:diplomatic_relation ?k . ?k rdf:type ontology:political_territorial_entity . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?d } }
[]
political territorial entity designation for an administrative territorial entity
Q30 Q159 Q142
SYSTEM
United States of America, Russia, France
Q801 Q142 Q145 Q711 Q252 Q403 Q258 Q159 Q43 Q889 Q884 Q33 Q30 Q36 Q34 Q39 Q739 Q423 Q851 Q20 Q27 Q843 Q1029 Q229 Q1030 Q115 Q114 Q212 Q218 Q833 Q79 Q77 Q878
(c(Q15617994),P530,c(Q1048835))
action equal
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
value 3
[ANSWERS] are known to have diplomatic connections with exactly 3 political territories
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?d WHERE { FILTER ( ?q = 3 ) . { SELECT DISTINCT ?d ( COUNT ( ?k ) AS ?q ) WHERE { ?d property:P530 ?k . ?k rdf:type ontology:Q1048835 . ?d rdf:type ontology:Q15617994 } GROUP BY ?d } }
Israel France United Kingdom Mongolia Indonesia Serbia South Africa Russia Turkey Afghanistan South Korea Finland United States of America Poland Sweden Switzerland Colombia North Korea Saudi Arabia Norway Ireland Pakistan Mozambique Cyprus Namibia Ethiopia Kenya Ukraine Romania Malaysia Egypt Uruguay United Arab Emirates
United States of America, Russia and France are known to have diplomatic connections with exactly 3 political territories
United States of America Russia France
action equal
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
value 3
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?d WHERE { FILTER ( ?q = 3 ) . { SELECT DISTINCT ?d ( COUNT ( ?k ) AS ?q ) WHERE { ?d property:diplomatic_relation ?k . ?k rdf:type ontology:political_territorial_entity . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?d } }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q16837237
P495
Q2088357
USER
Did Folkodia originate in those administrative territories ?
(Q16837237,P495,Q30) (Q16837237,P495,Q159) (Q16837237,P495,Q142)
action is_in
entity prev_answer
action find
entity Q16837237
relation P495
['Q16837237', 'P495', 'Q30'] ['Q16837237', 'P495', 'Q159'] ['Q16837237', 'P495', 'Q142']
ASK WHERE { VALUES ( ?f ) { ( resource:Q801 ) ( resource:Q142 ) ( resource:Q145 ) } . resource:Q16837237 property:P495 ?f }
Folkodia
action is_in
entity prev_answer
action find
entity Folkodia
relation country of origin
['Folkodia', 'country of origin', 'United States of America'] ['Folkodia', 'country of origin', 'Russia'] ['Folkodia', 'country of origin', 'France']
ASK WHERE { VALUES ( ?f ) { ( resource:Israel ) ( resource:France ) ( resource:United_Kingdom ) } . resource:Folkodia property:country_of_origin ?f }
[]
musical ensemble
SYSTEM
YES
(Q16837237,P495,Q30) (Q16837237,P495,Q159) (Q16837237,P495,Q142)
action is_in
entity prev_answer
action find
entity Q16837237
relation P495
[ANSWER]
['Q16837237', 'P495', 'Q30'] ['Q16837237', 'P495', 'Q159'] ['Q16837237', 'P495', 'Q142']
ASK WHERE { VALUES ( ?f ) { ( resource:Q801 ) ( resource:Q142 ) ( resource:Q145 ) } . resource:Q16837237 property:P495 ?f }
Yes
action is_in
entity prev_answer
action find
entity Folkodia
relation country of origin
['Folkodia', 'country of origin', 'United States of America'] ['Folkodia', 'country of origin', 'Russia'] ['Folkodia', 'country of origin', 'France']
ASK WHERE { VALUES ( ?f ) { ( resource:Israel ) ( resource:France ) ( resource:United_Kingdom ) } . resource:Folkodia property:country_of_origin ?f }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q142 Q1011 Q16903439
P530
Q15617994
USER
Does France have diplomatic associations with Cape Verde and Wilkes-Barre Area School District ?
(Q142,P530,Q1011) (Q142,P530,Q16903439)
action is_in
entity Q142
action intersection
action find_reverse
entity Q1011
relation P530
action find_reverse
entity Q16903439
relation P530
['Q142', 'P530', 'Q1011'] ['Q142', 'P530', 'Q16903439']
ASK WHERE { resource:Q142 property:P530 resource:Q16903439 . resource:Q142 property:P530 resource:Q1011 }
France Cape Verde Wilkes-Barre Area School District
action is_in
entity France
action intersection
action find_reverse
entity Cape Verde
relation diplomatic relation
action find_reverse
entity Wilkes-Barre Area School District
relation diplomatic relation
['France', 'diplomatic relation', 'Cape Verde'] ['France', 'diplomatic relation', 'Wilkes-Barre Area School District']
ASK WHERE { resource:France property:diplomatic_relation resource:Wilkes-Barre_Area_School_District . resource:France property:diplomatic_relation resource:Cape_Verde }
[]
designation for an administrative territorial entity
SYSTEM
YES and NO respectively
(Q142,P530,Q1011) (Q142,P530,Q16903439)
action is_in
entity Q142
action intersection
action find_reverse
entity Q1011
relation P530
action find_reverse
entity Q16903439
relation P530
[ANSWER]
['Q142', 'P530', 'Q1011'] ['Q142', 'P530', 'Q16903439']
ASK WHERE { resource:Q142 property:P530 resource:Q16903439 . resource:Q142 property:P530 resource:Q1011 }
YES and NO respectively
action is_in
entity France
action intersection
action find_reverse
entity Cape Verde
relation diplomatic relation
action find_reverse
entity Wilkes-Barre Area School District
relation diplomatic relation
['France', 'diplomatic relation', 'Cape Verde'] ['France', 'diplomatic relation', 'Wilkes-Barre Area School District']
ASK WHERE { resource:France property:diplomatic_relation resource:Wilkes-Barre_Area_School_District . resource:France property:diplomatic_relation resource:Cape_Verde }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q30 Q691
P840 P495
Q838948
USER
Which works of art have their setting located at Papua New Guinea and are United States of America a country of origin of ?
AND((c(Q838948),P840,Q691), (c(Q838948),P495,Q30))
action filter_type
action intersection
action find_reverse
entity Q691
relation P840
action find_reverse
entity Q30
relation P495
type Q838948
{'AND': [[{'concept': 'Q838948'}, 'P840', 'Q691'], [{'concept': 'Q838948'}, 'P495', 'Q30']]}
SELECT DISTINCT ?h WHERE { ?h property:P840 resource:Q691 . ?h property:P495 resource:Q30 . ?h rdf:type ontology:Q838948 }
United States of America Papua New Guinea
action filter_type
action intersection
action find_reverse
entity Papua New Guinea
relation narrative location
action find_reverse
entity United States of America
relation country of origin
type work of art
{'AND': [[{'concept': 'work of art'}, 'narrative location', 'Papua New Guinea'], [{'concept': 'work of art'}, 'country of origin', 'United States of America']]}
SELECT DISTINCT ?h WHERE { ?h property:narrative_location resource:Papua_New_Guinea . ?h property:country_of_origin resource:United_States_of_America . ?h rdf:type ontology:work_of_art }
[]
work of art
Q1430481 Q7773172 Q580351 Q517910
SYSTEM
Seven Women from Hell, The Wackiest Ship in the Army, Sanctum, Robinson Crusoe
Q1430481 Q7773172 Q580351 Q517910
AND((c(Q838948),P840,Q691), (c(Q838948),P495,Q30))
action filter_type
action intersection
action find_reverse
entity Q691
relation P840
action find_reverse
entity Q30
relation P495
type Q838948
[ANSWERS] have their setting located at Papua New Guinea and are United States of America a country of origin of
{'AND': [[{'concept': 'Q838948'}, 'P840', 'Q691'], [{'concept': 'Q838948'}, 'P495', 'Q30']]}
SELECT DISTINCT ?h WHERE { ?h property:P840 resource:Q691 . ?h property:P495 resource:Q30 . ?h rdf:type ontology:Q838948 }
Seven Women from Hell The Wackiest Ship in the Army Sanctum Robinson Crusoe
Seven Women from Hell, The Wackiest Ship in the Army, Sanctum and Robinson Crusoe have their setting located at Papua New Guinea and are United States of America a country of origin of
Seven Women from Hell The Wackiest Ship in the Army Sanctum Robinson Crusoe
action filter_type
action intersection
action find_reverse
entity Papua New Guinea
relation narrative location
action find_reverse
entity United States of America
relation country of origin
type work of art
{'AND': [[{'concept': 'work of art'}, 'narrative location', 'Papua New Guinea'], [{'concept': 'work of art'}, 'country of origin', 'United States of America']]}
SELECT DISTINCT ?h WHERE { ?h property:narrative_location resource:Papua_New_Guinea . ?h property:country_of_origin resource:United_States_of_America . ?h rdf:type ontology:work_of_art }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q580351
P161
Q502895
USER
Which people starred in Sanctum ?
(Q580351,P161,c(Q502895))
action filter_type
action find
entity Q580351
relation P161
type Q502895
['Q580351', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?k WHERE { resource:Q580351 property:P161 ?k . ?k rdf:type ontology:Q502895 }
Sanctum
action filter_type
action find
entity Sanctum
relation cast member
type common name
['Sanctum', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?k WHERE { resource:Sanctum property:cast_member ?k . ?k rdf:type ontology:common_name }
[]
common name
Q361630 Q295974 Q2157010
SYSTEM
Richard Roxburgh, Ioan Gruffudd, Rhys Wakefield
Q5219133 Q361630 Q295974 Q2157010
(Q580351,P161,c(Q502895))
action filter_type
action find
entity Q580351
relation P161
type Q502895
[ANSWERS] starred in Sanctum
['Q580351', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?k WHERE { resource:Q580351 property:P161 ?k . ?k rdf:type ontology:Q502895 }
Daniel Wyllie Richard Roxburgh Ioan Gruffudd Rhys Wakefield
Richard Roxburgh, Ioan Gruffudd and Rhys Wakefield starred in Sanctum
Richard Roxburgh Ioan Gruffudd Rhys Wakefield
action filter_type
action find
entity Sanctum
relation cast member
type common name
['Sanctum', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?k WHERE { resource:Sanctum property:cast_member ?k . ?k rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q580351
P162
Q502895
USER
Which person produced Sanctum ?
(Q580351,P162,c(Q502895))
action filter_type
action find
entity Q580351
relation P162
type Q502895
['Q580351', 'P162', {'concept': 'Q502895'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q502895 . resource:Q580351 property:P162 ?t }
Sanctum
action filter_type
action find
entity Sanctum
relation producer
type common name
['Sanctum', 'producer', {'concept': 'common name'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:common_name . resource:Sanctum property:producer ?t }
[]
common name
Q4758912
SYSTEM
Andrew Wight
Q4758912
(Q580351,P162,c(Q502895))
action filter_type
action find
entity Q580351
relation P162
type Q502895
The [ANSWER] produced Sanctum
['Q580351', 'P162', {'concept': 'Q502895'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q502895 . resource:Q580351 property:P162 ?t }
Andrew Wight
The Andrew Wight produced Sanctum
Andrew Wight
action filter_type
action find
entity Sanctum
relation producer
type common name
['Sanctum', 'producer', {'concept': 'common name'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:common_name . resource:Sanctum property:producer ?t }
[]