Simple Question (Direct)
Simple Question
Q4911051
P1412
Q34770
USER
Which language is spoken by Bill Sublette ?
(Q4911051,P1412,c(Q34770))
action filter_type
action find
entity Q4911051
relation P1412
type Q34770
['Q4911051', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?m WHERE { resource:Q4911051 property:P1412 ?m . ?m rdf:type ontology:Q34770 }
Bill Sublette
action filter_type
action find
entity Bill Sublette
relation languages spoken, written or signed
type language
['Bill Sublette', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?m WHERE { resource:Bill_Sublette property:languages_spoken,_written_or_signed ?m . ?m rdf:type ontology:language }
[]
language
Q1860
SYSTEM
English
Q1860
(Q4911051,P1412,c(Q34770))
action filter_type
action find
entity Q4911051
relation P1412
type Q34770
Is [ANSWER] is spoken by Bill Sublette
['Q4911051', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?m WHERE { resource:Q4911051 property:P1412 ?m . ?m rdf:type ontology:Q34770 }
English
Is English is spoken by Bill Sublette
English
action filter_type
action find
entity Bill Sublette
relation languages spoken, written or signed
type language
['Bill Sublette', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?m WHERE { resource:Bill_Sublette property:languages_spoken,_written_or_signed ?m . ?m rdf:type ontology:language }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q4911051
P39
Q12737077
USER
What was the position for which Bill Sublette was appointed ?
(Q4911051,P39,c(Q12737077))
action filter_type
action find
entity Q4911051
relation P39
type Q12737077
['Q4911051', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?y WHERE { resource:Q4911051 property:P39 ?y . ?y rdf:type ontology:Q12737077 }
Bill Sublette
action filter_type
action find
entity Bill Sublette
relation position held
type occupation
['Bill Sublette', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?y WHERE { resource:Bill_Sublette property:position_held ?y . ?y rdf:type ontology:occupation }
[]
occupation
Q18342844
SYSTEM
Member of the Florida House of Representatives
Q18342844
(Q4911051,P39,c(Q12737077))
action filter_type
action find
entity Q4911051
relation P39
type Q12737077
[ANSWER]
['Q4911051', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?y WHERE { resource:Q4911051 property:P39 ?y . ?y rdf:type ontology:Q12737077 }
Member of the Florida House of Representatives
Member of the Florida House of Representatives
Member of the Florida House of Representatives
action filter_type
action find
entity Bill Sublette
relation position held
type occupation
['Bill Sublette', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?y WHERE { resource:Bill_Sublette property:position_held ?y . ?y rdf:type ontology:occupation }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q1860
P37
Q12737077 Q21114848
USER
How many occupations and magazine genres are English associated to as the official language ?
(c(Q12737077),P37,Q1860) (c(Q21114848),P37,Q1860)
action count
action union
action filter_type
action find_reverse
entity Q1860
relation P37
type Q12737077
action filter_type
action find_reverse
entity Q1860
relation P37
type Q21114848
[{'concept': 'Q12737077'}, 'P37', 'Q1860'] [{'concept': 'Q21114848'}, 'P37', 'Q1860']
SELECT DISTINCT ( COUNT ( ?d ) AS ?a ) WHERE { { ?d property:P37 resource:Q1860 . ?d rdf:type ontology:Q21114848 } UNION { ?d rdf:type ontology:Q12737077 . ?d property:P37 resource:Q1860 } }
English
action count
action union
action filter_type
action find_reverse
entity English
relation official language
type occupation
action filter_type
action find_reverse
entity English
relation official language
type magazine genre
[{'concept': 'occupation'}, 'official language', 'English'] [{'concept': 'magazine genre'}, 'official language', 'English']
SELECT DISTINCT ( COUNT ( ?d ) AS ?a ) WHERE { { ?d property:official_language resource:English . ?d rdf:type ontology:magazine_genre } UNION { ?d rdf:type ontology:occupation . ?d property:official_language resource:English } }
[]
occupation magazine genre
SYSTEM
4 occupations and 1 magazine genres
Q319145 Q17018201 Q4824712 Q7245050 Q15708868
(c(Q12737077),P37,Q1860) (c(Q21114848),P37,Q1860)
action count
action union
action filter_type
action find_reverse
entity Q1860
relation P37
type Q12737077
action filter_type
action find_reverse
entity Q1860
relation P37
type Q21114848
[ANSWER]
[{'concept': 'Q12737077'}, 'P37', 'Q1860'] [{'concept': 'Q21114848'}, 'P37', 'Q1860']
SELECT DISTINCT ( COUNT ( ?d ) AS ?a ) WHERE { { ?d property:P37 resource:Q1860 . ?d rdf:type ontology:Q21114848 } UNION { ?d rdf:type ontology:Q12737077 . ?d property:P37 resource:Q1860 } }
Prime Minister of Australia Northern Territory Government Architect Australian Statistician Principal Architect The American Journal of Pharmaceutical Education
4 occupations and 1 magazine genres
action count
action union
action filter_type
action find_reverse
entity English
relation official language
type occupation
action filter_type
action find_reverse
entity English
relation official language
type magazine genre
[{'concept': 'occupation'}, 'official language', 'English'] [{'concept': 'magazine genre'}, 'official language', 'English']
SELECT DISTINCT ( COUNT ( ?d ) AS ?a ) WHERE { { ?d property:official_language resource:English . ?d rdf:type ontology:magazine_genre } UNION { ?d rdf:type ontology:occupation . ?d property:official_language resource:English } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q4701316 Q18342844
P17
Q15617994
USER
Which administrative territories are Member of the Florida House of Representatives or Akkalkuwa a part of ?
OR((Q18342844,P17,c(Q15617994)), (Q4701316,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q18342844
relation P17
action find
entity Q4701316
relation P17
type Q15617994
{'OR': [['Q18342844', 'P17', {'concept': 'Q15617994'}], ['Q4701316', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Q18342844 property:P17 ?m } UNION { resource:Q4701316 property:P17 ?m } } . ?m rdf:type ontology:Q15617994 }
Akkalkuwa Member of the Florida House of Representatives
action filter_type
action union
action find
entity Member of the Florida House of Representatives
relation country
action find
entity Akkalkuwa
relation country
type designation for an administrative territorial entity
{'OR': [['Member of the Florida House of Representatives', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Akkalkuwa', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Member_of_the_Florida_House_of_Representatives property:country ?m } UNION { resource:Akkalkuwa property:country ?m } } . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30 Q668
SYSTEM
United States of America, India
Q30 Q668
OR((Q18342844,P17,c(Q15617994)), (Q4701316,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q18342844
relation P17
action find
entity Q4701316
relation P17
type Q15617994
[ANSWERS] are Member of the Florida House of Representatives or Akkalkuwa a part of
{'OR': [['Q18342844', 'P17', {'concept': 'Q15617994'}], ['Q4701316', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Q18342844 property:P17 ?m } UNION { resource:Q4701316 property:P17 ?m } } . ?m rdf:type ontology:Q15617994 }
United States of America India
United States of America and India are Member of the Florida House of Representatives or Akkalkuwa a part of
United States of America India
action filter_type
action union
action find
entity Member of the Florida House of Representatives
relation country
action find
entity Akkalkuwa
relation country
type designation for an administrative territorial entity
{'OR': [['Member of the Florida House of Representatives', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Akkalkuwa', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Member_of_the_Florida_House_of_Representatives property:country ?m } UNION { resource:Akkalkuwa property:country ?m } } . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Clarification
Simple Question|Single Entity|Indirect
Q668
P37
Q34770
USER
What is recognized as the official language of that administrative territory ?
(Q668,P37,c(Q34770))
action filter_type
action find
entity Q668
relation P37
type Q34770
['Q668', 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q34770 . resource:Q668 property:P37 ?d }
India
action filter_type
action find
entity India
relation official language
type language
['India', 'official language', {'concept': 'language'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:language . resource:India property:official_language ?d }
[]
language
Clarification for simple ques.
Q668
SYSTEM
Did you mean India ?
Q30 Q668
(Q30,P37,c(Q34770)) (Q668,P37,c(Q34770))
[ANSWER]
['Q30', 'P37', {'concept': 'Q34770'}] ['Q668', 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q34770 . resource:Q668 property:P37 ?d }
United States of America India
Did you mean India ?
India
['United States of America', 'official language', {'concept': 'language'}] ['India', 'official language', {'concept': 'language'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:language . resource:India property:official_language ?d }
[]
Simple Question (Coreferenced)
USER
Yes
(Q668,P37,c(Q34770))
['Q668', 'P37', {'concept': 'Q34770'}]
['India', 'official language', {'concept': 'language'}]
[]
Q1860
SYSTEM
English
Q1860
(Q668,P37,c(Q34770))
action filter_type
action find
entity Q668
relation P37
type Q34770
Of [ANSWER] is recognized as the official language of that administrative territory
['Q668', 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q34770 . resource:Q668 property:P37 ?d }
English
Of English is recognized as the official language of that administrative territory
English
action filter_type
action find
entity India
relation official language
type language
['India', 'official language', {'concept': 'language'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:language . resource:India property:official_language ?d }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P530
Q1048835 Q15617994 Q15617994
USER
How many administrative territories are known to have diplomatic connections with around 66 political territories or administrative territories ?
(c(Q15617994),P530,c(Q1048835)|c(Q15617994))
action count
action approx
action union
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 66
[{'concept': 'Q15617994'}, 'P530', [{'concept': 'Q1048835'}, {'concept': 'Q15617994'}]]
SELECT DISTINCT ( COUNT ( ?p ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?f ) ?p WHERE { { ?p property:P530 ?d . ?p rdf:type ontology:Q15617994 . ?d rdf:type ontology:Q1048835 } UNION { ?p property:P530 ?d . ?p rdf:type ontology:Q15617994 . ?d rdf:type ontology:Q15617994 } } GROUP BY ?p } . FILTER ( ?f = 66 ) }
action count
action approx
action union
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 66
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', [{'concept': 'political territorial entity'}, {'concept': 'designation for an administrative territorial entity'}]]
SELECT DISTINCT ( COUNT ( ?p ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?f ) ?p WHERE { { ?p property:diplomatic_relation ?d . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?d rdf:type ontology:political_territorial_entity } UNION { ?p property:diplomatic_relation ?d . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?p } . FILTER ( ?f = 66 ) }
[]
political territorial entity designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
1
Q155
(c(Q15617994),P530,c(Q1048835)|c(Q15617994))
action count
action approx
action union
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 66
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', [{'concept': 'Q1048835'}, {'concept': 'Q15617994'}]]
SELECT DISTINCT ( COUNT ( ?p ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?f ) ?p WHERE { { ?p property:P530 ?d . ?p rdf:type ontology:Q15617994 . ?d rdf:type ontology:Q1048835 } UNION { ?p property:P530 ?d . ?p rdf:type ontology:Q15617994 . ?d rdf:type ontology:Q15617994 } } GROUP BY ?p } . FILTER ( ?f = 66 ) }
Brazil
1
action count
action approx
action union
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 66
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', [{'concept': 'political territorial entity'}, {'concept': 'designation for an administrative territorial entity'}]]
SELECT DISTINCT ( COUNT ( ?p ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?f ) ?p WHERE { { ?p property:diplomatic_relation ?d . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?d rdf:type ontology:political_territorial_entity } UNION { ?p property:diplomatic_relation ?d . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?p } . FILTER ( ?f = 66 ) }
[]