Simple Question (Direct)
Simple Question
Q5108180
P27
Q15617994
USER
Which administrative territory is the country of citizenship of Chris Stroffolino ?
(Q5108180,P27,c(Q15617994))
action filter_type
action find
entity Q5108180
relation P27
type Q15617994
['Q5108180', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?o WHERE { resource:Q5108180 property:P27 ?o . ?o rdf:type ontology:Q15617994 }
Chris Stroffolino
action filter_type
action find
entity Chris Stroffolino
relation country of citizenship
type designation for an administrative territorial entity
['Chris Stroffolino', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { resource:Chris_Stroffolino property:country_of_citizenship ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
(Q5108180,P27,c(Q15617994))
action filter_type
action find
entity Q5108180
relation P27
type Q15617994
[ANSWER]
['Q5108180', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?o WHERE { resource:Q5108180 property:P27 ?o . ?o rdf:type ontology:Q15617994 }
United States of America
United States of America
action filter_type
action find
entity Chris Stroffolino
relation country of citizenship
type designation for an administrative territorial entity
['Chris Stroffolino', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { resource:Chris_Stroffolino property:country_of_citizenship ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5108180
P735
Q82799
USER
What is the firstname of that person ?
(Q30,P735,c(Q82799))
action filter_type
action find
entity Q5108180
relation P735
type Q82799
['Q30', 'P735', {'concept': 'Q82799'}]
SELECT DISTINCT ?i WHERE { resource:Q5108180 property:P735 ?i . ?i rdf:type ontology:Q82799 }
Chris Stroffolino
action filter_type
action find
entity Chris Stroffolino
relation given name
type name
['United States of America', 'given name', {'concept': 'name'}]
SELECT DISTINCT ?i WHERE { resource:Chris_Stroffolino property:given_name ?i . ?i rdf:type ontology:name }
[]
name
Q339346
SYSTEM
Chris
Q339346
(Q30,P735,c(Q82799))
action filter_type
action find
entity Q5108180
relation P735
type Q82799
[ANSWER]
['Q30', 'P735', {'concept': 'Q82799'}]
SELECT DISTINCT ?i WHERE { resource:Q5108180 property:P735 ?i . ?i rdf:type ontology:Q82799 }
Chris
Chris
action filter_type
action find
entity Chris Stroffolino
relation given name
type name
['United States of America', 'given name', {'concept': 'name'}]
SELECT DISTINCT ?i WHERE { resource:Chris_Stroffolino property:given_name ?i . ?i rdf:type ontology:name }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q3215140 Q339346
P1750
Q186081
USER
Which time intervals are connected with Chris or Louise ?
OR((Q339346,P1750,c(Q186081)), (Q3215140,P1750,c(Q186081)))
action filter_type
action union
action find
entity Q339346
relation P1750
action find
entity Q3215140
relation P1750
type Q186081
{'OR': [['Q339346', 'P1750', {'concept': 'Q186081'}], ['Q3215140', 'P1750', {'concept': 'Q186081'}]]}
SELECT DISTINCT ?z WHERE { { ?i property:P1750 ?z . VALUES ( ?i ) { ( resource:Q339346 ) ( resource:Q3215140 ) } } . ?z rdf:type ontology:Q186081 }
Louise Chris
action filter_type
action union
action find
entity Chris
relation name day
action find
entity Louise
relation name day
type time interval
{'OR': [['Chris', 'name day', {'concept': 'time interval'}], ['Louise', 'name day', {'concept': 'time interval'}]]}
SELECT DISTINCT ?z WHERE { { ?i property:name_day ?z . VALUES ( ?i ) { ( resource:Chris ) ( resource:Louise ) } } . ?z rdf:type ontology:time_interval }
[]
time interval
Q2403
SYSTEM
March 15
Q2403
OR((Q339346,P1750,c(Q186081)), (Q3215140,P1750,c(Q186081)))
action filter_type
action union
action find
entity Q339346
relation P1750
action find
entity Q3215140
relation P1750
type Q186081
[ANSWER]
{'OR': [['Q339346', 'P1750', {'concept': 'Q186081'}], ['Q3215140', 'P1750', {'concept': 'Q186081'}]]}
SELECT DISTINCT ?z WHERE { { ?i property:P1750 ?z . VALUES ( ?i ) { ( resource:Q339346 ) ( resource:Q3215140 ) } } . ?z rdf:type ontology:Q186081 }
March 15
March 15
action filter_type
action union
action find
entity Chris
relation name day
action find
entity Louise
relation name day
type time interval
{'OR': [['Chris', 'name day', {'concept': 'time interval'}], ['Louise', 'name day', {'concept': 'time interval'}]]}
SELECT DISTINCT ?z WHERE { { ?i property:name_day ?z . VALUES ( ?i ) { ( resource:Chris ) ( resource:Louise ) } } . ?z rdf:type ontology:time_interval }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q2403 Q3348617 Q6050426
P361
Q1790144
USER
Is that time interval a component of 1518 BC and 1402 AH ?
(Q2403,P361,Q3348617) (Q2403,P361,Q6050426)
action is_in
entity Q2403
action intersection
action find_reverse
entity Q3348617
relation P361
action find_reverse
entity Q6050426
relation P361
['Q2403', 'P361', 'Q3348617'] ['Q2403', 'P361', 'Q6050426']
ASK WHERE { resource:Q2403 property:P361 resource:Q3348617 . resource:Q2403 property:P361 resource:Q6050426 }
March 15 1518 BC 1402 AH
action is_in
entity March 15
action intersection
action find_reverse
entity 1518 BC
relation part of
action find_reverse
entity 1402 AH
relation part of
['March 15', 'part of', '1518 BC'] ['March 15', 'part of', '1402 AH']
ASK WHERE { resource:March_15 property:part_of resource:1518_BC . resource:March_15 property:part_of resource:1402_AH }
[]
unit of time
SYSTEM
NO
(Q2403,P361,Q3348617) (Q2403,P361,Q6050426)
action is_in
entity Q2403
action intersection
action find_reverse
entity Q3348617
relation P361
action find_reverse
entity Q6050426
relation P361
[ANSWER]
['Q2403', 'P361', 'Q3348617'] ['Q2403', 'P361', 'Q6050426']
ASK WHERE { resource:Q2403 property:P361 resource:Q3348617 . resource:Q2403 property:P361 resource:Q6050426 }
No
action is_in
entity March 15
action intersection
action find_reverse
entity 1518 BC
relation part of
action find_reverse
entity 1402 AH
relation part of
['March 15', 'part of', '1518 BC'] ['March 15', 'part of', '1402 AH']
ASK WHERE { resource:March_15 property:part_of resource:1518_BC . resource:March_15 property:part_of resource:1402_AH }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P138
Q12737077 Q15619164 Q82799
USER
Which names are named after max number of occupations and abstract beings ?
(c(Q82799),P138,c(Q12737077)|c(Q15619164))
action argmax
action union
action find_tuple_counts
relation P138
type Q82799
type Q12737077
action find_tuple_counts
relation P138
type Q82799
type Q15619164
[{'concept': 'Q82799'}, 'P138', [{'concept': 'Q12737077'}, {'concept': 'Q15619164'}]]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( MAX ( ?j ) AS ?x ) { SELECT DISTINCT ?g ( COUNT ( ?y ) AS ?j ) WHERE { ?y rdf:type ?u . VALUES ( ?u ) { ( ontology:Q12737077 ) ( ontology:Q15619164 ) } } GROUP BY ?g } } . { SELECT DISTINCT ?w ( COUNT ( ?c ) AS ?s ) WHERE { { ?w property:P138 ?c . ?w rdf:type ontology:Q82799 . ?c rdf:type ontology:Q12737077 } UNION { ?c rdf:type ontology:Q15619164 . ?w rdf:type ontology:Q82799 . ?w property:P138 ?c } } GROUP BY ?w } . FILTER ( ?s = ?x ) }
action argmax
action union
action find_tuple_counts
relation named after
type name
type occupation
action find_tuple_counts
relation named after
type name
type abstract being
[{'concept': 'name'}, 'named after', [{'concept': 'occupation'}, {'concept': 'abstract being'}]]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( MAX ( ?j ) AS ?x ) { SELECT DISTINCT ?g ( COUNT ( ?y ) AS ?j ) WHERE { ?y rdf:type ?u . VALUES ( ?u ) { ( ontology:occupation ) ( ontology:abstract_being ) } } GROUP BY ?g } } . { SELECT DISTINCT ?w ( COUNT ( ?c ) AS ?s ) WHERE { { ?w property:named_after ?c . ?w rdf:type ontology:name . ?c rdf:type ontology:occupation } UNION { ?c rdf:type ontology:abstract_being . ?w rdf:type ontology:name . ?w property:named_after ?c } } GROUP BY ?w } . FILTER ( ?s = ?x ) }
[]
occupation abstract being name
Q1069827 Q1158446 Q1158882
SYSTEM
Rosario, Smith, Fisher
Q1069827 Q23599481 Q16869665 Q1158446 Q1158882 Q11231408 Q24699545 Q15785531 Q5352294 Q813701 Q23783070 Q23995126 Q21501910 Q24451619 Q1260304 Q21493520 Q17643158 Q1882407 Q20818054 Q16860286 Q16865812 Q20963077 Q1755217 Q24689291 Q16148136 Q19899706
(c(Q82799),P138,c(Q12737077)|c(Q15619164))
action argmax
action union
action find_tuple_counts
relation P138
type Q82799
type Q12737077
action find_tuple_counts
relation P138
type Q82799
type Q15619164
[ANSWERS]
[{'concept': 'Q82799'}, 'P138', [{'concept': 'Q12737077'}, {'concept': 'Q15619164'}]]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( MAX ( ?j ) AS ?x ) { SELECT DISTINCT ?g ( COUNT ( ?y ) AS ?j ) WHERE { ?y rdf:type ?u . VALUES ( ?u ) { ( ontology:Q12737077 ) ( ontology:Q15619164 ) } } GROUP BY ?g } } . { SELECT DISTINCT ?w ( COUNT ( ?c ) AS ?s ) WHERE { { ?w property:P138 ?c . ?w rdf:type ontology:Q82799 . ?c rdf:type ontology:Q12737077 } UNION { ?c rdf:type ontology:Q15619164 . ?w rdf:type ontology:Q82799 . ?w property:P138 ?c } } GROUP BY ?w } . FILTER ( ?s = ?x ) }
Rosario Bouvier Draper Smith Fisher Fischer Saunier Barber Fisichella Becker Potier Mercier Boulanger Métivier Berger Bergmann If-Jesus-Christ-Had-Not-Died-For-Thee-Thou-Hadst-Been-Damned MacGowan Giolla Íosa Boucher Couture Aryaman Magowan Vigneron Archer Sawyer
Rosario Smith Fisher
action argmax
action union
action find_tuple_counts
relation named after
type name
type occupation
action find_tuple_counts
relation named after
type name
type abstract being
[{'concept': 'name'}, 'named after', [{'concept': 'occupation'}, {'concept': 'abstract being'}]]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( MAX ( ?j ) AS ?x ) { SELECT DISTINCT ?g ( COUNT ( ?y ) AS ?j ) WHERE { ?y rdf:type ?u . VALUES ( ?u ) { ( ontology:occupation ) ( ontology:abstract_being ) } } GROUP BY ?g } } . { SELECT DISTINCT ?w ( COUNT ( ?c ) AS ?s ) WHERE { { ?w property:named_after ?c . ?w rdf:type ontology:name . ?c rdf:type ontology:occupation } UNION { ?c rdf:type ontology:abstract_being . ?w rdf:type ontology:name . ?w property:named_after ?c } } GROUP BY ?w } . FILTER ( ?s = ?x ) }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q1069827 Q1158446 Q1158882
P407
Q34770
USER
Which languages are the languages of work for those names ?
(Q1069827,P407,c(Q34770)) (Q1158446,P407,c(Q34770)) (Q1158882,P407,c(Q34770))
action filter_type
action find
entity prev_answer
relation P407
type Q34770
['Q1069827', 'P407', {'concept': 'Q34770'}] ['Q1158446', 'P407', {'concept': 'Q34770'}] ['Q1158882', 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ?c WHERE { ?w property:P407 ?c . VALUES ( ?w ) { ( resource:Q1069827 ) ( resource:Q23599481 ) ( resource:Q16869665 ) } . ?c rdf:type ontology:Q34770 }
Rosario Smith Fisher
action filter_type
action find
entity prev_answer
relation language of work or name
type language
['Rosario', 'language of work or name', {'concept': 'language'}] ['Smith', 'language of work or name', {'concept': 'language'}] ['Fisher', 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ?c WHERE { ?w property:language_of_work_or_name ?c . VALUES ( ?w ) { ( resource:Rosario ) ( resource:Bouvier ) ( resource:Draper ) } . ?c rdf:type ontology:language }
[]
language
Q1860 Q1860 Q652
SYSTEM
Italian for 3rd, English for 1st, 2nd
Q652 Q1321 Q1860 Q1860
(Q1069827,P407,c(Q34770)) (Q1158446,P407,c(Q34770)) (Q1158882,P407,c(Q34770))
action filter_type
action find
entity prev_answer
relation P407
type Q34770
[ANSWERS]
['Q1069827', 'P407', {'concept': 'Q34770'}] ['Q1158446', 'P407', {'concept': 'Q34770'}] ['Q1158882', 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ?c WHERE { ?w property:P407 ?c . VALUES ( ?w ) { ( resource:Q1069827 ) ( resource:Q23599481 ) ( resource:Q16869665 ) } . ?c rdf:type ontology:Q34770 }
Italian Spanish English English
English English Italian
action filter_type
action find
entity prev_answer
relation language of work or name
type language
['Rosario', 'language of work or name', {'concept': 'language'}] ['Smith', 'language of work or name', {'concept': 'language'}] ['Fisher', 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ?c WHERE { ?w property:language_of_work_or_name ?c . VALUES ( ?w ) { ( resource:Rosario ) ( resource:Bouvier ) ( resource:Draper ) } . ?c rdf:type ontology:language }
[]