Simple Question (Direct)
Simple Question
Q9175298
P21
Q290
USER
Which sex does Bogdan Pisz possess ?
(Q9175298,P21,c(Q290))
action filter_type
action find
entity Q9175298
relation P21
type Q290
['Q9175298', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?m WHERE { resource:Q9175298 property:P21 ?m . ?m rdf:type ontology:Q290 }
Bogdan Pisz
action filter_type
action find
entity Bogdan Pisz
relation gender
type sex
['Bogdan Pisz', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?m WHERE { resource:Bogdan_Pisz property:gender ?m . ?m rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q9175298,P21,c(Q290))
action filter_type
action find
entity Q9175298
relation P21
type Q290
Bogdan Pisz possesses a [ANSWER]
['Q9175298', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?m WHERE { resource:Q9175298 property:P21 ?m . ?m rdf:type ontology:Q290 }
male
Bogdan Pisz possesses a male
male
action filter_type
action find
entity Bogdan Pisz
relation gender
type sex
['Bogdan Pisz', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?m WHERE { resource:Bogdan_Pisz property:gender ?m . ?m rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q9175298
P641
Q349
USER
Which sport was that person a part of ?
(Q6581097,P641,c(Q349))
action filter_type
action find
entity Q9175298
relation P641
type Q349
['Q6581097', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?d WHERE { resource:Q9175298 property:P641 ?d . ?d rdf:type ontology:Q349 }
Bogdan Pisz
action filter_type
action find
entity Bogdan Pisz
relation sport
type sport
['male', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?d WHERE { resource:Bogdan_Pisz property:sport ?d . ?d rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q6581097,P641,c(Q349))
action filter_type
action find
entity Q9175298
relation P641
type Q349
Football [ANSWER] was that person a part of
['Q6581097', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?d WHERE { resource:Q9175298 property:P641 ?d . ?d rdf:type ontology:Q349 }
association football
Football association football was that person a part of
association football
action filter_type
action find
entity Bogdan Pisz
relation sport
type sport
['male', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?d WHERE { resource:Bogdan_Pisz property:sport ?d . ?d rdf:type ontology:sport }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q9175298
P27
Q15617994
USER
Which administrative territory is that person a civilian of ?
(Q2736,P27,c(Q15617994))
action filter_type
action find
entity Q9175298
relation P27
type Q15617994
['Q2736', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?l WHERE { resource:Q9175298 property:P27 ?l . ?l rdf:type ontology:Q15617994 }
Bogdan Pisz
action filter_type
action find
entity Bogdan Pisz
relation country of citizenship
type designation for an administrative territorial entity
['association football', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { resource:Bogdan_Pisz property:country_of_citizenship ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q36
SYSTEM
Poland
Q36
(Q2736,P27,c(Q15617994))
action filter_type
action find
entity Q9175298
relation P27
type Q15617994
[ANSWER] is that person a civilian of
['Q2736', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?l WHERE { resource:Q9175298 property:P27 ?l . ?l rdf:type ontology:Q15617994 }
Poland
Poland is that person a civilian of
Poland
action filter_type
action find
entity Bogdan Pisz
relation country of citizenship
type designation for an administrative territorial entity
['association football', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { resource:Bogdan_Pisz property:country_of_citizenship ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators|Indirect
P47
Q15617994 Q1048835
USER
How many administrative territories or political territories have a shared border with that administrative territory ?
(Q36,P47,c(Q15617994)) (Q36,P47,c(Q1048835)) (Q36,P47,c(Q15617994)) (Q36,P47,c(Q1048835))
action count
action union
action filter_type
action find
entity Q36
relation P47
type Q15617994
action filter_type
action find
entity Q36
relation P47
type Q1048835
['Q36', 'P47', {'concept': 'Q15617994'}] ['Q36', 'P47', {'concept': 'Q1048835'}] ['Q36', 'P47', {'concept': 'Q15617994'}] ['Q36', 'P47', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?r ) WHERE { { resource:Q36 property:P47 ?l . ?l rdf:type ontology:Q15617994 } UNION { resource:Q36 property:P47 ?l . ?l rdf:type ontology:Q1048835 } }
action count
action union
action filter_type
action find
entity Poland
relation shares border with
type designation for an administrative territorial entity
action filter_type
action find
entity Poland
relation shares border with
type political territorial entity
['Poland', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Poland', 'shares border with', {'concept': 'political territorial entity'}] ['Poland', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Poland', 'shares border with', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?r ) WHERE { { resource:Poland property:shares_border_with ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { resource:Poland property:shares_border_with ?l . ?l rdf:type ontology:political_territorial_entity } }
[]
designation for an administrative territorial entity political territorial entity
SYSTEM
9
Q212 Q213 Q211 Q159 Q214 Q184 Q183 Q37 Q218
(Q36,P47,c(Q15617994)) (Q36,P47,c(Q1048835)) (Q36,P47,c(Q15617994)) (Q36,P47,c(Q1048835))
action count
action union
action filter_type
action find
entity Q36
relation P47
type Q15617994
action filter_type
action find
entity Q36
relation P47
type Q1048835
[ANSWER]
['Q36', 'P47', {'concept': 'Q15617994'}] ['Q36', 'P47', {'concept': 'Q1048835'}] ['Q36', 'P47', {'concept': 'Q15617994'}] ['Q36', 'P47', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?r ) WHERE { { resource:Q36 property:P47 ?l . ?l rdf:type ontology:Q15617994 } UNION { resource:Q36 property:P47 ?l . ?l rdf:type ontology:Q1048835 } }
Ukraine Czech Republic Latvia Russia Slovakia Belarus Germany Lithuania Romania
9
action count
action union
action filter_type
action find
entity Poland
relation shares border with
type designation for an administrative territorial entity
action filter_type
action find
entity Poland
relation shares border with
type political territorial entity
['Poland', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Poland', 'shares border with', {'concept': 'political territorial entity'}] ['Poland', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Poland', 'shares border with', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?r ) WHERE { { resource:Poland property:shares_border_with ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { resource:Poland property:shares_border_with ?l . ?l rdf:type ontology:political_territorial_entity } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q36 Q31057
P163
Q14660
USER
How many flags have Poland or Norfolk Island as their flag ?
(Q36,P163,c(Q14660)) (Q31057,P163,c(Q14660))
action count
action union
action filter_type
action find
entity Q36
relation P163
type Q14660
action filter_type
action find
entity Q31057
relation P163
type Q14660
['Q36', 'P163', {'concept': 'Q14660'}] ['Q31057', 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?j ) WHERE { { resource:Q31057 property:P163 ?w . ?w rdf:type ontology:Q14660 } UNION { resource:Q36 property:P163 ?w . ?w rdf:type ontology:Q14660 } }
Poland Norfolk Island
action count
action union
action filter_type
action find
entity Poland
relation flag
type flag
action filter_type
action find
entity Norfolk Island
relation flag
type flag
['Poland', 'flag', {'concept': 'flag'}] ['Norfolk Island', 'flag', {'concept': 'flag'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?j ) WHERE { { resource:Norfolk_Island property:flag ?w . ?w rdf:type ontology:flag } UNION { resource:Poland property:flag ?w . ?w rdf:type ontology:flag } }
[]
flag
SYSTEM
2
Q42436 Q235445
(Q36,P163,c(Q14660)) (Q31057,P163,c(Q14660))
action count
action union
action filter_type
action find
entity Q36
relation P163
type Q14660
action filter_type
action find
entity Q31057
relation P163
type Q14660
[ANSWER]
['Q36', 'P163', {'concept': 'Q14660'}] ['Q31057', 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?j ) WHERE { { resource:Q31057 property:P163 ?w . ?w rdf:type ontology:Q14660 } UNION { resource:Q36 property:P163 ?w . ?w rdf:type ontology:Q14660 } }
Flag of Poland Flag of Norfolk Island
2
action count
action union
action filter_type
action find
entity Poland
relation flag
type flag
action filter_type
action find
entity Norfolk Island
relation flag
type flag
['Poland', 'flag', {'concept': 'flag'}] ['Norfolk Island', 'flag', {'concept': 'flag'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?j ) WHERE { { resource:Norfolk_Island property:flag ?w . ?w rdf:type ontology:flag } UNION { resource:Poland property:flag ?w . ?w rdf:type ontology:flag } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P194
Q701632 Q35749 Q15617994
USER
How many administrative territories have atleast 1 municipal councils and parliaments as their legislative body ?
(c(Q15617994),P194,c(Q701632)|c(Q35749))
action count
action atleast
action union
action find_tuple_counts
relation P194
type Q15617994
type Q701632
action find_tuple_counts
relation P194
type Q15617994
type Q35749
value 1
[{'concept': 'Q15617994'}, 'P194', [{'concept': 'Q701632'}, {'concept': 'Q35749'}]]
SELECT DISTINCT ( COUNT ( ?t ) AS ?c ) WHERE { FILTER ( ?u >= 1 ) . { SELECT DISTINCT ( COUNT ( ?w ) AS ?u ) ?t WHERE { { ?t property:P194 ?w . ?t rdf:type ontology:Q15617994 . ?w rdf:type ontology:Q701632 } UNION { ?t property:P194 ?w . ?t rdf:type ontology:Q15617994 . ?w rdf:type ontology:Q35749 } } GROUP BY ?t } }
action count
action atleast
action union
action find_tuple_counts
relation legislative body
type designation for an administrative territorial entity
type municipal council
action find_tuple_counts
relation legislative body
type designation for an administrative territorial entity
type parliament
value 1
[{'concept': 'designation for an administrative territorial entity'}, 'legislative body', [{'concept': 'municipal council'}, {'concept': 'parliament'}]]
SELECT DISTINCT ( COUNT ( ?t ) AS ?c ) WHERE { FILTER ( ?u >= 1 ) . { SELECT DISTINCT ( COUNT ( ?w ) AS ?u ) ?t WHERE { { ?t property:legislative_body ?w . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . ?w rdf:type ontology:municipal_council } UNION { ?t property:legislative_body ?w . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . ?w rdf:type ontology:parliament } } GROUP BY ?t } }
[]
municipal council parliament designation for an administrative territorial entity
SYSTEM
12
Q2806757 Q1948 Q1979 Q1974 Q2009 Q2007 Q2003 Q1904 Q1989 Q212 Q1951 Q2023
(c(Q15617994),P194,c(Q701632)|c(Q35749))
action count
action atleast
action union
action find_tuple_counts
relation P194
type Q15617994
type Q701632
action find_tuple_counts
relation P194
type Q15617994
type Q35749
value 1
[ANSWER]
[{'concept': 'Q15617994'}, 'P194', [{'concept': 'Q701632'}, {'concept': 'Q35749'}]]
SELECT DISTINCT ( COUNT ( ?t ) AS ?c ) WHERE { FILTER ( ?u >= 1 ) . { SELECT DISTINCT ( COUNT ( ?w ) AS ?u ) ?t WHERE { { ?t property:P194 ?w . ?t rdf:type ontology:Q15617994 . ?w rdf:type ontology:Q701632 } UNION { ?t property:P194 ?w . ?t rdf:type ontology:Q15617994 . ?w rdf:type ontology:Q35749 } } GROUP BY ?t } }
105 Mile Post Indian Reserve No. 2 Manitoba Prince Edward Island British Columbia Yukon Northwest Territories Newfoundland and Labrador Ontario Saskatchewan Ukraine Alberta Nunavut
12
action count
action atleast
action union
action find_tuple_counts
relation legislative body
type designation for an administrative territorial entity
type municipal council
action find_tuple_counts
relation legislative body
type designation for an administrative territorial entity
type parliament
value 1
[{'concept': 'designation for an administrative territorial entity'}, 'legislative body', [{'concept': 'municipal council'}, {'concept': 'parliament'}]]
SELECT DISTINCT ( COUNT ( ?t ) AS ?c ) WHERE { FILTER ( ?u >= 1 ) . { SELECT DISTINCT ( COUNT ( ?w ) AS ?u ) ?t WHERE { { ?t property:legislative_body ?w . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . ?w rdf:type ontology:municipal_council } UNION { ?t property:legislative_body ?w . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . ?w rdf:type ontology:parliament } } GROUP BY ?t } }
[]