Simple Question (Direct)
Simple Question
Q1252458
P140
Q879146
USER
Which Christian denomination does Douglas Regattieri relate to ?
(Q1252458,P140,c(Q879146))
action filter_type
action find
entity Q1252458
relation P140
type Q879146
['Q1252458', 'P140', {'concept': 'Q879146'}]
SELECT DISTINCT ?l WHERE { resource:Q1252458 property:P140 ?l . ?l rdf:type ontology:Q879146 }
Douglas Regattieri
action filter_type
action find
entity Douglas Regattieri
relation religion
type Christian denomination
['Douglas Regattieri', 'religion', {'concept': 'Christian denomination'}]
SELECT DISTINCT ?l WHERE { resource:Douglas_Regattieri property:religion ?l . ?l rdf:type ontology:Christian_denomination }
[]
Christian denomination
Q9592
SYSTEM
Roman Catholic Church
Q9592
(Q1252458,P140,c(Q879146))
action filter_type
action find
entity Q1252458
relation P140
type Q879146
Douglas Regattieri relates to [ANSWER]
['Q1252458', 'P140', {'concept': 'Q879146'}]
SELECT DISTINCT ?l WHERE { resource:Q1252458 property:P140 ?l . ?l rdf:type ontology:Q879146 }
Roman Catholic Church
Douglas Regattieri relates to Roman Catholic Church
Roman Catholic Church
action filter_type
action find
entity Douglas Regattieri
relation religion
type Christian denomination
['Douglas Regattieri', 'religion', {'concept': 'Christian denomination'}]
SELECT DISTINCT ?l WHERE { resource:Douglas_Regattieri property:religion ?l . ?l rdf:type ontology:Christian_denomination }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1252458
P21
Q290
USER
Which sex does that person have ?
(Q9592,P21,c(Q290))
action filter_type
action find
entity Q1252458
relation P21
type Q290
['Q9592', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?v WHERE { resource:Q1252458 property:P21 ?v . ?v rdf:type ontology:Q290 }
Douglas Regattieri
action filter_type
action find
entity Douglas Regattieri
relation gender
type sex
['Roman Catholic Church', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?v WHERE { resource:Douglas_Regattieri property:gender ?v . ?v rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q9592,P21,c(Q290))
action filter_type
action find
entity Q1252458
relation P21
type Q290
That person has a [ANSWER]
['Q9592', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?v WHERE { resource:Q1252458 property:P21 ?v . ?v rdf:type ontology:Q290 }
male
That person has a male
male
action filter_type
action find
entity Douglas Regattieri
relation gender
type sex
['Roman Catholic Church', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?v WHERE { resource:Douglas_Regattieri property:gender ?v . ?v rdf:type ontology:sex }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P248
Q11032 Q43229 Q502895
USER
Which people have been mentioned in around 1 newspapers and organizations ?
(c(Q502895),P248,c(Q11032)|c(Q43229))
action approx
action union
action find_tuple_counts
relation P248
type Q502895
type Q11032
action find_tuple_counts
relation P248
type Q502895
type Q43229
value 1
[{'concept': 'Q502895'}, 'P248', [{'concept': 'Q11032'}, {'concept': 'Q43229'}]]
SELECT DISTINCT ?a WHERE { FILTER ( ?r = 1 ) . { SELECT DISTINCT ?a ( COUNT ( ?j ) AS ?r ) WHERE { { ?a property:P248 ?j . ?a rdf:type ontology:Q502895 . ?j rdf:type ontology:Q11032 } UNION { ?j rdf:type ontology:Q43229 . ?a rdf:type ontology:Q502895 . ?a property:P248 ?j } } GROUP BY ?a } }
action approx
action union
action find_tuple_counts
relation stated in
type common name
type newspaper
action find_tuple_counts
relation stated in
type common name
type organization
value 1
[{'concept': 'common name'}, 'stated in', [{'concept': 'newspaper'}, {'concept': 'organization'}]]
SELECT DISTINCT ?a WHERE { FILTER ( ?r = 1 ) . { SELECT DISTINCT ?a ( COUNT ( ?j ) AS ?r ) WHERE { { ?a property:stated_in ?j . ?a rdf:type ontology:common_name . ?j rdf:type ontology:newspaper } UNION { ?j rdf:type ontology:organization . ?a rdf:type ontology:common_name . ?a property:stated_in ?j } } GROUP BY ?a } }
[]
newspaper organization common name
Q6251897 Q5239881 Q5233457
SYSTEM
John Parker, David Smith, David Evans
Q5232852 Q6249889 Q9069823 Q16106932 Q7351128 Q8004400 Q16031260 Q6262713 Q8020385 Q5239881 Q17308862 Q8019902 Q15637844 Q6263007 Q5144957 Q5233457 Q6239258 Q8020394 Q8020390 Q6257915 Q6251897 Q9311159 Q5537322 Q6246961 Q8020402 Q15990004
(c(Q502895),P248,c(Q11032)|c(Q43229))
action approx
action union
action find_tuple_counts
relation P248
type Q502895
type Q11032
action find_tuple_counts
relation P248
type Q502895
type Q43229
value 1
[ANSWERS] have been mentioned in around 1 newspapers and organizations
[{'concept': 'Q502895'}, 'P248', [{'concept': 'Q11032'}, {'concept': 'Q43229'}]]
SELECT DISTINCT ?a WHERE { FILTER ( ?r = 1 ) . { SELECT DISTINCT ?a ( COUNT ( ?j ) AS ?r ) WHERE { { ?a property:P248 ?j . ?a rdf:type ontology:Q502895 . ?j rdf:type ontology:Q11032 } UNION { ?j rdf:type ontology:Q43229 . ?a rdf:type ontology:Q502895 . ?a property:P248 ?j } } GROUP BY ?a } }
David Davies John Murphy Robert Williams David Evans Robert Williams William Anderson John Murphy John Walker William Williams David Smith Colin Campbell William Walker David Smith John Ward Colin Campbell David Evans John Hill William Williams William Williams John Simpson John Parker Robert Williams George Brown John Martin William Williams John Gray
John Parker, David Smith and David Evans have been mentioned in around 1 newspapers and organizations
John Parker David Smith David Evans
action approx
action union
action find_tuple_counts
relation stated in
type common name
type newspaper
action find_tuple_counts
relation stated in
type common name
type organization
value 1
[{'concept': 'common name'}, 'stated in', [{'concept': 'newspaper'}, {'concept': 'organization'}]]
SELECT DISTINCT ?a WHERE { FILTER ( ?r = 1 ) . { SELECT DISTINCT ?a ( COUNT ( ?j ) AS ?r ) WHERE { { ?a property:stated_in ?j . ?a rdf:type ontology:common_name . ?j rdf:type ontology:newspaper } UNION { ?j rdf:type ontology:organization . ?a rdf:type ontology:common_name . ?a property:stated_in ?j } } GROUP BY ?a } }
[]