Simple Question (Direct)
Simple Question
Q16025523
P734
Q82799
USER
Who is associated with Isidore David ?
(Q16025523,P734,c(Q82799))
action filter_type
action find
entity Q16025523
relation P734
type Q82799
['Q16025523', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?t WHERE { resource:Q16025523 property:P734 ?t . ?t rdf:type ontology:Q82799 }
Isidore David
action filter_type
action find
entity Isidore David
relation family name
type name
['Isidore David', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?t WHERE { resource:Isidore_David property:family_name ?t . ?t rdf:type ontology:name }
[]
name
Q13221657
SYSTEM
David
Q13221657
(Q16025523,P734,c(Q82799))
action filter_type
action find
entity Q16025523
relation P734
type Q82799
[ANSWER] is associated with Isidore [ANSWER]
['Q16025523', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?t WHERE { resource:Q16025523 property:P734 ?t . ?t rdf:type ontology:Q82799 }
David
David is associated with Isidore David
David
action filter_type
action find
entity Isidore David
relation family name
type name
['Isidore David', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?t WHERE { resource:Isidore_David property:family_name ?t . ?t rdf:type ontology:name }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q389886 Q16025523
P27
Q15617994
USER
Which administrative territories are Isidore David or Géza Vida a civilian of ?
OR((Q16025523,P27,c(Q15617994)), (Q389886,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q16025523
relation P27
action find
entity Q389886
relation P27
type Q15617994
{'OR': [['Q16025523', 'P27', {'concept': 'Q15617994'}], ['Q389886', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q15617994 . { { resource:Q16025523 property:P27 ?o } UNION { resource:Q389886 property:P27 ?o } } }
Géza Vida Isidore David
action filter_type
action union
action find
entity Isidore David
relation country of citizenship
action find
entity Géza Vida
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Isidore David', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Géza Vida', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Isidore_David property:country_of_citizenship ?o } UNION { resource:Géza_Vida property:country_of_citizenship ?o } } }
[]
designation for an administrative territorial entity
Q142 Q28
SYSTEM
France, Hungary
Q142 Q28
OR((Q16025523,P27,c(Q15617994)), (Q389886,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q16025523
relation P27
action find
entity Q389886
relation P27
type Q15617994
[ANSWERS] are Isidore David or Géza Vida a civilian of
{'OR': [['Q16025523', 'P27', {'concept': 'Q15617994'}], ['Q389886', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q15617994 . { { resource:Q16025523 property:P27 ?o } UNION { resource:Q389886 property:P27 ?o } } }
France Hungary
France and Hungary are Isidore David or Géza Vida a civilian of
France Hungary
action filter_type
action union
action find
entity Isidore David
relation country of citizenship
action find
entity Géza Vida
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Isidore David', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Géza Vida', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Isidore_David property:country_of_citizenship ?o } UNION { resource:Géza_Vida property:country_of_citizenship ?o } } }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q1149528
P495
Q11424
USER
Do A Monkey's Tale have those administrative territories as their place of origin ?
(Q1149528,P495,Q142) (Q1149528,P495,Q28)
action is_in
entity prev_answer
action find
entity Q1149528
relation P495
['Q1149528', 'P495', 'Q142'] ['Q1149528', 'P495', 'Q28']
ASK WHERE { resource:Q1149528 property:P495 ?f . VALUES ( ?f ) { ( resource:Q142 ) ( resource:Q28 ) } }
A Monkey's Tale
action is_in
entity prev_answer
action find
entity A Monkey's Tale
relation country of origin
["A Monkey's Tale", 'country of origin', 'France'] ["A Monkey's Tale", 'country of origin', 'Hungary']
ASK WHERE { resource:A_Monkey's_Tale property:country_of_origin ?f . VALUES ( ?f ) { ( resource:France ) ( resource:Hungary ) } }
[]
film
SYSTEM
YES
(Q1149528,P495,Q142) (Q1149528,P495,Q28)
action is_in
entity prev_answer
action find
entity Q1149528
relation P495
[ANSWER]
['Q1149528', 'P495', 'Q142'] ['Q1149528', 'P495', 'Q28']
ASK WHERE { resource:Q1149528 property:P495 ?f . VALUES ( ?f ) { ( resource:Q142 ) ( resource:Q28 ) } }
Yes
action is_in
entity prev_answer
action find
entity A Monkey's Tale
relation country of origin
["A Monkey's Tale", 'country of origin', 'France'] ["A Monkey's Tale", 'country of origin', 'Hungary']
ASK WHERE { resource:A_Monkey's_Tale property:country_of_origin ?f . VALUES ( ?f ) { ( resource:France ) ( resource:Hungary ) } }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q13221657 Q1860 Q3072588
P407
Q34770
USER
Is David created in language English and Fingalian ?
(Q13221657,P407,Q1860) (Q13221657,P407,Q3072588)
action is_in
entity Q13221657
action intersection
action find_reverse
entity Q1860
relation P407
action find_reverse
entity Q3072588
relation P407
['Q13221657', 'P407', 'Q1860'] ['Q13221657', 'P407', 'Q3072588']
ASK WHERE { resource:Q13221657 property:P407 resource:Q3072588 . resource:Q13221657 property:P407 resource:Q1860 }
David English Fingalian
action is_in
entity David
action intersection
action find_reverse
entity English
relation language of work or name
action find_reverse
entity Fingalian
relation language of work or name
['David', 'language of work or name', 'English'] ['David', 'language of work or name', 'Fingalian']
ASK WHERE { resource:David property:language_of_work_or_name resource:Fingalian . resource:David property:language_of_work_or_name resource:English }
[]
language
SYSTEM
YES and NO respectively
(Q13221657,P407,Q1860) (Q13221657,P407,Q3072588)
action is_in
entity Q13221657
action intersection
action find_reverse
entity Q1860
relation P407
action find_reverse
entity Q3072588
relation P407
[ANSWER]
['Q13221657', 'P407', 'Q1860'] ['Q13221657', 'P407', 'Q3072588']
ASK WHERE { resource:Q13221657 property:P407 resource:Q3072588 . resource:Q13221657 property:P407 resource:Q1860 }
YES and NO respectively
action is_in
entity David
action intersection
action find_reverse
entity English
relation language of work or name
action find_reverse
entity Fingalian
relation language of work or name
['David', 'language of work or name', 'English'] ['David', 'language of work or name', 'Fingalian']
ASK WHERE { resource:David property:language_of_work_or_name resource:Fingalian . resource:David property:language_of_work_or_name resource:English }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q142
P463
Q180516 Q484652
USER
How many rooms or international organizations were France a member of ?
(Q142,P463,c(Q180516)) (Q142,P463,c(Q484652))
action count
action union
action filter_type
action find
entity Q142
relation P463
type Q180516
action filter_type
action find
entity Q142
relation P463
type Q484652
['Q142', 'P463', {'concept': 'Q180516'}] ['Q142', 'P463', {'concept': 'Q484652'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?j ) WHERE { ?f rdf:type ?e . VALUES ( ?e ) { ( ontology:Q180516 ) ( ontology:Q484652 ) } }
France
action count
action union
action filter_type
action find
entity France
relation member of
type room
action filter_type
action find
entity France
relation member of
type international organization
['France', 'member of', {'concept': 'room'}] ['France', 'member of', {'concept': 'international organization'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?j ) WHERE { ?f rdf:type ?e . VALUES ( ?e ) { ( ontology:room ) ( ontology:international_organization ) } }
[]
room international organization
SYSTEM
10
Q81299 Q1065 Q141720 Q19771 Q188822 Q37143 Q134102 Q7184 Q42262 Q1043527
(Q142,P463,c(Q180516)) (Q142,P463,c(Q484652))
action count
action union
action filter_type
action find
entity Q142
relation P463
type Q180516
action filter_type
action find
entity Q142
relation P463
type Q484652
[ANSWER]
['Q142', 'P463', {'concept': 'Q180516'}] ['Q142', 'P463', {'concept': 'Q484652'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?j ) WHERE { ?f rdf:type ?e . VALUES ( ?e ) { ( ontology:Q180516 ) ( ontology:Q484652 ) } }
Organization for Security and Co-operation in Europe United Nations European Air Transport Command G20 Asian Development Bank G8 Organisation internationale de la Francophonie North Atlantic Treaty Organisation European Space Agency Multilateral Investment Guarantee Agency
10
action count
action union
action filter_type
action find
entity France
relation member of
type room
action filter_type
action find
entity France
relation member of
type international organization
['France', 'member of', {'concept': 'room'}] ['France', 'member of', {'concept': 'international organization'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?j ) WHERE { ?f rdf:type ?e . VALUES ( ?e ) { ( ontology:room ) ( ontology:international_organization ) } }
[]