Simple Question (Direct)
Simple Question
Q104273
P26
Q502895
USER
Which person is the life partner of Báb ?
(Q104273,P26,c(Q502895))
action filter_type
action find
entity Q104273
relation P26
type Q502895
['Q104273', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?j WHERE { resource:Q104273 property:P26 ?j . ?j rdf:type ontology:Q502895 }
Báb
action filter_type
action find
entity Báb
relation spouse
type common name
['Báb', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?j WHERE { resource:Báb property:spouse ?j . ?j rdf:type ontology:common_name }
[]
common name
Q2481684
SYSTEM
Khadíjih-Bagum
Q2481684
(Q104273,P26,c(Q502895))
action filter_type
action find
entity Q104273
relation P26
type Q502895
[ANSWER] is the life partner of Báb
['Q104273', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?j WHERE { resource:Q104273 property:P26 ?j . ?j rdf:type ontology:Q502895 }
Khadíjih-Bagum
Khadíjih-Bagum is the life partner of Báb
Khadíjih-Bagum
action filter_type
action find
entity Báb
relation spouse
type common name
['Báb', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?j WHERE { resource:Báb property:spouse ?j . ?j rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q104273
P112
Q9174
USER
Which religion was established by Báb ?
(c(Q9174),P112,Q104273)
action filter_type
action find_reverse
entity Q104273
relation P112
type Q9174
[{'concept': 'Q9174'}, 'P112', 'Q104273']
SELECT DISTINCT ?j WHERE { ?j property:P112 resource:Q104273 . ?j rdf:type ontology:Q9174 }
Báb
action filter_type
action find_reverse
entity Báb
relation founder
type religion
[{'concept': 'religion'}, 'founder', 'Báb']
SELECT DISTINCT ?j WHERE { ?j property:founder resource:Báb . ?j rdf:type ontology:religion }
[]
religion
Q204128
SYSTEM
Bábism
Q204128
(c(Q9174),P112,Q104273)
action filter_type
action find_reverse
entity Q104273
relation P112
type Q9174
[ANSWER] was established by Báb
[{'concept': 'Q9174'}, 'P112', 'Q104273']
SELECT DISTINCT ?j WHERE { ?j property:P112 resource:Q104273 . ?j rdf:type ontology:Q9174 }
Bábism
Bábism was established by Báb
Bábism
action filter_type
action find_reverse
entity Báb
relation founder
type religion
[{'concept': 'religion'}, 'founder', 'Báb']
SELECT DISTINCT ?j WHERE { ?j property:founder resource:Báb . ?j rdf:type ontology:religion }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q104273
P27
Q15617994
USER
Which administrative territory is that person a civilian of ?
(Q204128,P27,c(Q15617994))
action filter_type
action find
entity Q104273
relation P27
type Q15617994
['Q204128', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?l WHERE { resource:Q104273 property:P27 ?l . ?l rdf:type ontology:Q15617994 }
Báb
action filter_type
action find
entity Báb
relation country of citizenship
type designation for an administrative territorial entity
['Bábism', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { resource:Báb property:country_of_citizenship ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q794
SYSTEM
Iran
Q794
(Q204128,P27,c(Q15617994))
action filter_type
action find
entity Q104273
relation P27
type Q15617994
The [ANSWER] is that person a civilian of
['Q204128', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?l WHERE { resource:Q104273 property:P27 ?l . ?l rdf:type ontology:Q15617994 }
Iran
The Iran is that person a civilian of
Iran
action filter_type
action find
entity Báb
relation country of citizenship
type designation for an administrative territorial entity
['Bábism', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { resource:Báb property:country_of_citizenship ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q794 Q1019
P530
Q15617994
USER
How many administrative territories holds diplomatic relationship with Iran or Madagascar ?
(Q794,P530,c(Q15617994)) (Q1019,P530,c(Q15617994))
action count
action union
action filter_type
action find
entity Q794
relation P530
type Q15617994
action filter_type
action find
entity Q1019
relation P530
type Q15617994
['Q794', 'P530', {'concept': 'Q15617994'}] ['Q1019', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?c ) WHERE { { resource:Q794 property:P530 ?o . ?o rdf:type ontology:Q15617994 } UNION { resource:Q1019 property:P530 ?o . ?o rdf:type ontology:Q15617994 } }
Iran Madagascar
action count
action union
action filter_type
action find
entity Iran
relation diplomatic relation
type designation for an administrative territorial entity
action filter_type
action find
entity Madagascar
relation diplomatic relation
type designation for an administrative territorial entity
['Iran', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Madagascar', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?c ) WHERE { { resource:Iran property:diplomatic_relation ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { resource:Madagascar property:diplomatic_relation ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]
designation for an administrative territorial entity
SYSTEM
4
Q155 Q805 Q38 Q801
(Q794,P530,c(Q15617994)) (Q1019,P530,c(Q15617994))
action count
action union
action filter_type
action find
entity Q794
relation P530
type Q15617994
action filter_type
action find
entity Q1019
relation P530
type Q15617994
[ANSWER]
['Q794', 'P530', {'concept': 'Q15617994'}] ['Q1019', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?c ) WHERE { { resource:Q794 property:P530 ?o . ?o rdf:type ontology:Q15617994 } UNION { resource:Q1019 property:P530 ?o . ?o rdf:type ontology:Q15617994 } }
Brazil Yemen Italy Israel
4
action count
action union
action filter_type
action find
entity Iran
relation diplomatic relation
type designation for an administrative territorial entity
action filter_type
action find
entity Madagascar
relation diplomatic relation
type designation for an administrative territorial entity
['Iran', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Madagascar', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?c ) WHERE { { resource:Iran property:diplomatic_relation ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { resource:Madagascar property:diplomatic_relation ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q794
P840
Q201658
USER
Which film genres have a setting location of Iran ?
action filter_type
action find_reverse
entity Q794
relation P840
type Q201658
SELECT DISTINCT ?a WHERE { ?a property:P840 resource:Q794 . ?a rdf:type ontology:Q201658 }
Iran
action filter_type
action find_reverse
entity Iran
relation narrative location
type film genre
SELECT DISTINCT ?a WHERE { ?a property:narrative_location resource:Iran . ?a rdf:type ontology:film_genre }
[]
film genre
Q5775704 Q7621220
SYSTEM
History of Cinema, Strand
Q5775704 Q7621220
action filter_type
action find_reverse
entity Q794
relation P840
type Q201658
[ANSWERS] have a setting location of Iran
SELECT DISTINCT ?a WHERE { ?a property:P840 resource:Q794 . ?a rdf:type ontology:Q201658 }
History of Cinema Strand
History of Cinema and Strand have a setting location of Iran
History of Cinema Strand
action filter_type
action find_reverse
entity Iran
relation narrative location
type film genre
SELECT DISTINCT ?a WHERE { ?a property:narrative_location resource:Iran . ?a rdf:type ontology:film_genre }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q219
P921
Q191067
USER
What are Bulgaria a main subject of ?
(c(Q191067),P921,Q219)
action filter_type
action find_reverse
entity Q219
relation P921
type Q191067
[{'concept': 'Q191067'}, 'P921', 'Q219']
SELECT DISTINCT ?k WHERE { ?k property:P921 resource:Q219 . ?k rdf:type ontology:Q191067 }
Bulgaria
action filter_type
action find_reverse
entity Bulgaria
relation main subject
type article
[{'concept': 'article'}, 'main subject', 'Bulgaria']
SELECT DISTINCT ?k WHERE { ?k property:main_subject resource:Bulgaria . ?k rdf:type ontology:article }
[]
article
Q20639671 Q20639667
SYSTEM
EB-12 / Bulgaria, EB-11 / Bulgaria
Q20639671 Q20639667
(c(Q191067),P921,Q219)
action filter_type
action find_reverse
entity Q219
relation P921
type Q191067
Bulgaria a main subject of are the [ANSWERS]
[{'concept': 'Q191067'}, 'P921', 'Q219']
SELECT DISTINCT ?k WHERE { ?k property:P921 resource:Q219 . ?k rdf:type ontology:Q191067 }
EB-12 / Bulgaria EB-11 / Bulgaria
Bulgaria a main subject of are the EB-12 / Bulgaria and EB-11 / Bulgaria
EB-12 / Bulgaria EB-11 / Bulgaria
action filter_type
action find_reverse
entity Bulgaria
relation main subject
type article
[{'concept': 'article'}, 'main subject', 'Bulgaria']
SELECT DISTINCT ?k WHERE { ?k property:main_subject resource:Bulgaria . ?k rdf:type ontology:article }
[]
Clarification
Simple Question|Single Entity|Indirect
Q20639671
P1433
Q571
USER
Which book was that article published in ?
(Q20639671,P1433,c(Q571))
action filter_type
action find
entity Q20639671
relation P1433
type Q571
['Q20639671', 'P1433', {'concept': 'Q571'}]
SELECT DISTINCT ?f WHERE { resource:Q20639671 property:P1433 ?f . ?f rdf:type ontology:Q571 }
EB-12 / Bulgaria
action filter_type
action find
entity EB-12 / Bulgaria
relation published in
type book
['EB-12 / Bulgaria', 'published in', {'concept': 'book'}]
SELECT DISTINCT ?f WHERE { resource:EB-12_/_Bulgaria property:published_in ?f . ?f rdf:type ontology:book }
[]
book
Clarification for simple ques.
Q20639671
SYSTEM
Did you mean EB-12 / Bulgaria ?
Q20639671 Q20639667
(Q20639671,P1433,c(Q571)) (Q20639667,P1433,c(Q571))
[ANSWER]
['Q20639671', 'P1433', {'concept': 'Q571'}] ['Q20639667', 'P1433', {'concept': 'Q571'}]
SELECT DISTINCT ?f WHERE { resource:Q20639671 property:P1433 ?f . ?f rdf:type ontology:Q571 }
EB-12 / Bulgaria EB-11 / Bulgaria
Did you mean EB-12 / Bulgaria ?
EB-12 / Bulgaria
['EB-12 / Bulgaria', 'published in', {'concept': 'book'}] ['EB-11 / Bulgaria', 'published in', {'concept': 'book'}]
SELECT DISTINCT ?f WHERE { resource:EB-12_/_Bulgaria property:published_in ?f . ?f rdf:type ontology:book }
[]
Simple Question (Coreferenced)
USER
Yes
(Q20639671,P1433,c(Q571))
['Q20639671', 'P1433', {'concept': 'Q571'}]
['EB-12 / Bulgaria', 'published in', {'concept': 'book'}]
[]
Q15987490
SYSTEM
1922 Encyclopædia Britannica
Q15987490
(Q20639671,P1433,c(Q571))
action filter_type
action find
entity Q20639671
relation P1433
type Q571
That article was published in [ANSWER]
['Q20639671', 'P1433', {'concept': 'Q571'}]
SELECT DISTINCT ?f WHERE { resource:Q20639671 property:P1433 ?f . ?f rdf:type ontology:Q571 }
1922 Encyclopædia Britannica
That article was published in 1922 Encyclopædia Britannica
1922 Encyclopædia Britannica
action filter_type
action find
entity EB-12 / Bulgaria
relation published in
type book
['EB-12 / Bulgaria', 'published in', {'concept': 'book'}]
SELECT DISTINCT ?f WHERE { resource:EB-12_/_Bulgaria property:published_in ?f . ?f rdf:type ontology:book }
[]