Simple Question (Direct)
Simple Question
Q6285331
P27
Q15617994
USER
Which administrative territory is Joseph Marsh a civilian of ?
(Q6285331,P27,c(Q15617994))
action filter_type
action find
entity Q6285331
relation P27
type Q15617994
['Q6285331', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?j WHERE { resource:Q6285331 property:P27 ?j . ?j rdf:type ontology:Q15617994 }
Joseph Marsh
action filter_type
action find
entity Joseph Marsh
relation country of citizenship
type designation for an administrative territorial entity
['Joseph Marsh', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:Joseph_Marsh property:country_of_citizenship ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
(Q6285331,P27,c(Q15617994))
action filter_type
action find
entity Q6285331
relation P27
type Q15617994
The [ANSWER] is Joseph Marsh a civilian of
['Q6285331', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?j WHERE { resource:Q6285331 property:P27 ?j . ?j rdf:type ontology:Q15617994 }
United States of America
The United States of America is Joseph Marsh a civilian of
United States of America
action filter_type
action find
entity Joseph Marsh
relation country of citizenship
type designation for an administrative territorial entity
['Joseph Marsh', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:Joseph_Marsh property:country_of_citizenship ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6285331
P39
Q12737077
USER
Which occupation was a position occupied by that person ?
(Q30,P39,c(Q12737077))
action filter_type
action find
entity Q6285331
relation P39
type Q12737077
['Q30', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?z WHERE { resource:Q6285331 property:P39 ?z . ?z rdf:type ontology:Q12737077 }
Joseph Marsh
action filter_type
action find
entity Joseph Marsh
relation position held
type occupation
['United States of America', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?z WHERE { resource:Joseph_Marsh property:position_held ?z . ?z rdf:type ontology:occupation }
[]
occupation
Q17484018
SYSTEM
member of the Vermont House of Representatives
Q17484018
(Q30,P39,c(Q12737077))
action filter_type
action find
entity Q6285331
relation P39
type Q12737077
County [ANSWER] was a position occupied by that person
['Q30', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?z WHERE { resource:Q6285331 property:P39 ?z . ?z rdf:type ontology:Q12737077 }
member of the Vermont House of Representatives
County member of the Vermont House of Representatives was a position occupied by that person
member of the Vermont House of Representatives
action filter_type
action find
entity Joseph Marsh
relation position held
type occupation
['United States of America', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?z WHERE { resource:Joseph_Marsh property:position_held ?z . ?z rdf:type ontology:occupation }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P180
Q12737077 Q3305213 Q340169
USER
How many occupations are depicted in atleast 2 paintings or medias ?
(c(Q3305213)|c(Q340169),P180,c(Q12737077))
action count
action atleast
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q3305213
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q340169
value 2
[[{'concept': 'Q3305213'}, {'concept': 'Q340169'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?l ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?b ) ?i WHERE { ?a rdf:type ?h . VALUES ( ?h ) { ( ontology:Q3305213 ) ( ontology:Q340169 ) } } GROUP BY ?i } . FILTER ( ?b >= 2 ) }
action count
action atleast
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type painting
action find_reverse_tuple_counts
relation depicts
type occupation
type media
value 2
[[{'concept': 'painting'}, {'concept': 'media'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?l ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?b ) ?i WHERE { ?a rdf:type ?h . VALUES ( ?h ) { ( ontology:painting ) ( ontology:media ) } } GROUP BY ?i } . FILTER ( ?b >= 2 ) }
[]
occupation painting media
SYSTEM
10
Q19723482 Q733786 Q12059906 Q4991371 Q20489032 Q5716684 Q639669 Q15296811 Q42603 Q1630100
(c(Q3305213)|c(Q340169),P180,c(Q12737077))
action count
action atleast
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q3305213
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q340169
value 2
[ANSWER]
[[{'concept': 'Q3305213'}, {'concept': 'Q340169'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?l ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?b ) ?i WHERE { ?a rdf:type ?h . VALUES ( ?h ) { ( ontology:Q3305213 ) ( ontology:Q340169 ) } } GROUP BY ?i } . FILTER ( ?b >= 2 ) }
mandolinist monk herder soldier salt pan worker dancer musician draughtsperson priest art model
10
action count
action atleast
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type painting
action find_reverse_tuple_counts
relation depicts
type occupation
type media
value 2
[[{'concept': 'painting'}, {'concept': 'media'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?l ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?b ) ?i WHERE { ?a rdf:type ?h . VALUES ( ?h ) { ( ontology:painting ) ( ontology:media ) } } GROUP BY ?i } . FILTER ( ?b >= 2 ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q1898786 Q6285331
P1412
Q34770
USER
Which languages can Joseph Marsh or Mario Fortunato read ?
OR((Q6285331,P1412,c(Q34770)), (Q1898786,P1412,c(Q34770)))
action filter_type
action union
action find
entity Q6285331
relation P1412
action find
entity Q1898786
relation P1412
type Q34770
{'OR': [['Q6285331', 'P1412', {'concept': 'Q34770'}], ['Q1898786', 'P1412', {'concept': 'Q34770'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Q6285331 property:P1412 ?y } UNION { resource:Q1898786 property:P1412 ?y } } . ?y rdf:type ontology:Q34770 }
Mario Fortunato Joseph Marsh
action filter_type
action union
action find
entity Joseph Marsh
relation languages spoken, written or signed
action find
entity Mario Fortunato
relation languages spoken, written or signed
type language
{'OR': [['Joseph Marsh', 'languages spoken, written or signed', {'concept': 'language'}], ['Mario Fortunato', 'languages spoken, written or signed', {'concept': 'language'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Joseph_Marsh property:languages_spoken,_written_or_signed ?y } UNION { resource:Mario_Fortunato property:languages_spoken,_written_or_signed ?y } } . ?y rdf:type ontology:language }
[]
language
Q652 Q1860
SYSTEM
Italian, English
Q652 Q1860
OR((Q6285331,P1412,c(Q34770)), (Q1898786,P1412,c(Q34770)))
action filter_type
action union
action find
entity Q6285331
relation P1412
action find
entity Q1898786
relation P1412
type Q34770
Joseph Marsh or Mario Fortunato can read in [ANSWERS]
{'OR': [['Q6285331', 'P1412', {'concept': 'Q34770'}], ['Q1898786', 'P1412', {'concept': 'Q34770'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Q6285331 property:P1412 ?y } UNION { resource:Q1898786 property:P1412 ?y } } . ?y rdf:type ontology:Q34770 }
Italian English
Joseph Marsh or Mario Fortunato can read in Italian and English
Italian English
action filter_type
action union
action find
entity Joseph Marsh
relation languages spoken, written or signed
action find
entity Mario Fortunato
relation languages spoken, written or signed
type language
{'OR': [['Joseph Marsh', 'languages spoken, written or signed', {'concept': 'language'}], ['Mario Fortunato', 'languages spoken, written or signed', {'concept': 'language'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Joseph_Marsh property:languages_spoken,_written_or_signed ?y } UNION { resource:Mario_Fortunato property:languages_spoken,_written_or_signed ?y } } . ?y rdf:type ontology:language }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q6928467
P364
Q838948
USER
Were Mr. Bond done in those ones language during their inception ?
(Q6928467,P364,Q652) (Q6928467,P364,Q1860)
action is_in
entity prev_answer
action find
entity Q6928467
relation P364
['Q6928467', 'P364', 'Q652'] ['Q6928467', 'P364', 'Q1860']
ASK WHERE { resource:Q6928467 property:P364 ?v . VALUES ( ?v ) { ( resource:Q652 ) ( resource:Q1860 ) } }
Mr. Bond
action is_in
entity prev_answer
action find
entity Mr. Bond
relation original language of work
['Mr. Bond', 'original language of work', 'Italian'] ['Mr. Bond', 'original language of work', 'English']
ASK WHERE { resource:Mr._Bond property:original_language_of_work ?v . VALUES ( ?v ) { ( resource:Italian ) ( resource:English ) } }
[]
work of art
SYSTEM
NO
(Q6928467,P364,Q652) (Q6928467,P364,Q1860)
action is_in
entity prev_answer
action find
entity Q6928467
relation P364
[ANSWER]
['Q6928467', 'P364', 'Q652'] ['Q6928467', 'P364', 'Q1860']
ASK WHERE { resource:Q6928467 property:P364 ?v . VALUES ( ?v ) { ( resource:Q652 ) ( resource:Q1860 ) } }
No
action is_in
entity prev_answer
action find
entity Mr. Bond
relation original language of work
['Mr. Bond', 'original language of work', 'Italian'] ['Mr. Bond', 'original language of work', 'English']
ASK WHERE { resource:Mr._Bond property:original_language_of_work ?v . VALUES ( ?v ) { ( resource:Italian ) ( resource:English ) } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q10324279 Q1898786
P27
Q15617994
USER
Which administrative territories do Mario Fortunato or Manuel José Gonçalves Couto belong to ?
OR((Q1898786,P27,c(Q15617994)), (Q10324279,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q1898786
relation P27
action find
entity Q10324279
relation P27
type Q15617994
{'OR': [['Q1898786', 'P27', {'concept': 'Q15617994'}], ['Q10324279', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?j WHERE { { ?e property:P27 ?j . VALUES ( ?e ) { ( resource:Q1898786 ) ( resource:Q10324279 ) } } . ?j rdf:type ontology:Q15617994 }
Manuel José Gonçalves Couto Mario Fortunato
action filter_type
action union
action find
entity Mario Fortunato
relation country of citizenship
action find
entity Manuel José Gonçalves Couto
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Mario Fortunato', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Manuel José Gonçalves Couto', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?j WHERE { { ?e property:country_of_citizenship ?j . VALUES ( ?e ) { ( resource:Mario_Fortunato ) ( resource:Manuel_José_Gonçalves_Couto ) } } . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q38 Q45
SYSTEM
Italy, Portugal
Q38 Q45
OR((Q1898786,P27,c(Q15617994)), (Q10324279,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q1898786
relation P27
action find
entity Q10324279
relation P27
type Q15617994
Mario Fortunato or Manuel José Gonçalves Couto belong to [ANSWERS]
{'OR': [['Q1898786', 'P27', {'concept': 'Q15617994'}], ['Q10324279', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?j WHERE { { ?e property:P27 ?j . VALUES ( ?e ) { ( resource:Q1898786 ) ( resource:Q10324279 ) } } . ?j rdf:type ontology:Q15617994 }
Italy Portugal
Mario Fortunato or Manuel José Gonçalves Couto belong to Italy and Portugal
Italy Portugal
action filter_type
action union
action find
entity Mario Fortunato
relation country of citizenship
action find
entity Manuel José Gonçalves Couto
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Mario Fortunato', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Manuel José Gonçalves Couto', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?j WHERE { { ?e property:country_of_citizenship ?j . VALUES ( ?e ) { ( resource:Mario_Fortunato ) ( resource:Manuel_José_Gonçalves_Couto ) } } . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q183
P530
Q1048835
USER
Do Germany have diplomatic relations with those administrative territories ?
(Q183,P530,Q38) (Q183,P530,Q45)
action is_in
entity prev_answer
action find
entity Q183
relation P530
['Q183', 'P530', 'Q38'] ['Q183', 'P530', 'Q45']
ASK WHERE { VALUES ( ?b ) { ( resource:Q38 ) ( resource:Q45 ) } . resource:Q183 property:P530 ?b }
Germany
action is_in
entity prev_answer
action find
entity Germany
relation diplomatic relation
['Germany', 'diplomatic relation', 'Italy'] ['Germany', 'diplomatic relation', 'Portugal']
ASK WHERE { VALUES ( ?b ) { ( resource:Italy ) ( resource:Portugal ) } . resource:Germany property:diplomatic_relation ?b }
[]
political territorial entity
SYSTEM
YES
(Q183,P530,Q38) (Q183,P530,Q45)
action is_in
entity prev_answer
action find
entity Q183
relation P530
[ANSWER]
['Q183', 'P530', 'Q38'] ['Q183', 'P530', 'Q45']
ASK WHERE { VALUES ( ?b ) { ( resource:Q38 ) ( resource:Q45 ) } . resource:Q183 property:P530 ?b }
Yes
action is_in
entity prev_answer
action find
entity Germany
relation diplomatic relation
['Germany', 'diplomatic relation', 'Italy'] ['Germany', 'diplomatic relation', 'Portugal']
ASK WHERE { VALUES ( ?b ) { ( resource:Italy ) ( resource:Portugal ) } . resource:Germany property:diplomatic_relation ?b }
[]