Simple Question (Direct)
Simple Question
Q16567848
P734
Q82799
USER
Which name is associated with Jorge García ?
(Q16567848,P734,c(Q82799))
action filter_type
action find
entity Q16567848
relation P734
type Q82799
['Q16567848', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?d WHERE { resource:Q16567848 property:P734 ?d . ?d rdf:type ontology:Q82799 }
Jorge García
action filter_type
action find
entity Jorge García
relation family name
type name
['Jorge García', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?d WHERE { resource:Jorge_García property:family_name ?d . ?d rdf:type ontology:name }
[]
name
Q980636
SYSTEM
García
Q980636
(Q16567848,P734,c(Q82799))
action filter_type
action find
entity Q16567848
relation P734
type Q82799
[ANSWER] is associated with Jorge [ANSWER]
['Q16567848', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?d WHERE { resource:Q16567848 property:P734 ?d . ?d rdf:type ontology:Q82799 }
García
García is associated with Jorge García
García
action filter_type
action find
entity Jorge García
relation family name
type name
['Jorge García', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?d WHERE { resource:Jorge_García property:family_name ?d . ?d rdf:type ontology:name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q980636
P20
Q502895
USER
Which person has that name as the area of death ?
(c(Q502895),P20,Q980636)
action filter_type
action find_reverse
entity Q980636
relation P20
type Q502895
[{'concept': 'Q502895'}, 'P20', 'Q980636']
SELECT DISTINCT ?d WHERE { ?d property:P20 resource:Q980636 . ?d rdf:type ontology:Q502895 }
García
action filter_type
action find_reverse
entity García
relation place of death
type common name
[{'concept': 'common name'}, 'place of death', 'García']
SELECT DISTINCT ?d WHERE { ?d property:place_of_death resource:García . ?d rdf:type ontology:common_name }
[]
common name
Q5802004
SYSTEM
Juan Arturo Esparza García
Q5802004
(c(Q502895),P20,Q980636)
action filter_type
action find_reverse
entity Q980636
relation P20
type Q502895
[ANSWER] has that name as the area of death
[{'concept': 'Q502895'}, 'P20', 'Q980636']
SELECT DISTINCT ?d WHERE { ?d property:P20 resource:Q980636 . ?d rdf:type ontology:Q502895 }
Juan Arturo Esparza García
Juan Arturo Esparza García has that name as the area of death
Juan Arturo Esparza García
action filter_type
action find_reverse
entity García
relation place of death
type common name
[{'concept': 'common name'}, 'place of death', 'García']
SELECT DISTINCT ?d WHERE { ?d property:place_of_death resource:García . ?d rdf:type ontology:common_name }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P138
Q15617994 Q2472587 Q82799
USER
Which names come from max number of administrative territories and peoples ?
(c(Q82799),P138,c(Q15617994)|c(Q2472587))
action argmax
action union
action find_tuple_counts
relation P138
type Q82799
type Q15617994
action find_tuple_counts
relation P138
type Q82799
type Q2472587
[{'concept': 'Q82799'}, 'P138', [{'concept': 'Q15617994'}, {'concept': 'Q2472587'}]]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( MAX ( ?q ) AS ?x ) { SELECT DISTINCT ?d ( COUNT ( ?g ) AS ?q ) WHERE { VALUES ( ?v ) { ( ontology:Q15617994 ) ( ontology:Q2472587 ) } . ?g rdf:type ?v } GROUP BY ?d } } . FILTER ( ?z = ?x ) . { SELECT DISTINCT ?y ( COUNT ( ?l ) AS ?z ) WHERE { { ?y property:P138 ?l . ?y rdf:type ontology:Q82799 . ?l rdf:type ontology:Q2472587 } UNION { ?y property:P138 ?l . ?y rdf:type ontology:Q82799 . ?l rdf:type ontology:Q15617994 } } GROUP BY ?y } }
action argmax
action union
action find_tuple_counts
relation named after
type name
type designation for an administrative territorial entity
action find_tuple_counts
relation named after
type name
type people
[{'concept': 'name'}, 'named after', [{'concept': 'designation for an administrative territorial entity'}, {'concept': 'people'}]]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( MAX ( ?q ) AS ?x ) { SELECT DISTINCT ?d ( COUNT ( ?g ) AS ?q ) WHERE { VALUES ( ?v ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:people ) } . ?g rdf:type ?v } GROUP BY ?d } } . FILTER ( ?z = ?x ) . { SELECT DISTINCT ?y ( COUNT ( ?l ) AS ?z ) WHERE { { ?y property:named_after ?l . ?y rdf:type ontology:name . ?l rdf:type ontology:people } UNION { ?y property:named_after ?l . ?y rdf:type ontology:name . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?y } }
[]
designation for an administrative territorial entity people name
Q20027829 Q24229341
SYSTEM
Saxon, Toscano
Q20027829 Q24229341
(c(Q82799),P138,c(Q15617994)|c(Q2472587))
action argmax
action union
action find_tuple_counts
relation P138
type Q82799
type Q15617994
action find_tuple_counts
relation P138
type Q82799
type Q2472587
[ANSWERS] come from max number of administrative territories and peoples
[{'concept': 'Q82799'}, 'P138', [{'concept': 'Q15617994'}, {'concept': 'Q2472587'}]]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( MAX ( ?q ) AS ?x ) { SELECT DISTINCT ?d ( COUNT ( ?g ) AS ?q ) WHERE { VALUES ( ?v ) { ( ontology:Q15617994 ) ( ontology:Q2472587 ) } . ?g rdf:type ?v } GROUP BY ?d } } . FILTER ( ?z = ?x ) . { SELECT DISTINCT ?y ( COUNT ( ?l ) AS ?z ) WHERE { { ?y property:P138 ?l . ?y rdf:type ontology:Q82799 . ?l rdf:type ontology:Q2472587 } UNION { ?y property:P138 ?l . ?y rdf:type ontology:Q82799 . ?l rdf:type ontology:Q15617994 } } GROUP BY ?y } }
Saxon Toscano
Saxon and Toscano come from max number of administrative territories and peoples
Saxon Toscano
action argmax
action union
action find_tuple_counts
relation named after
type name
type designation for an administrative territorial entity
action find_tuple_counts
relation named after
type name
type people
[{'concept': 'name'}, 'named after', [{'concept': 'designation for an administrative territorial entity'}, {'concept': 'people'}]]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( MAX ( ?q ) AS ?x ) { SELECT DISTINCT ?d ( COUNT ( ?g ) AS ?q ) WHERE { VALUES ( ?v ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:people ) } . ?g rdf:type ?v } GROUP BY ?d } } . FILTER ( ?z = ?x ) . { SELECT DISTINCT ?y ( COUNT ( ?l ) AS ?z ) WHERE { { ?y property:named_after ?l . ?y rdf:type ontology:name . ?l rdf:type ontology:people } UNION { ?y property:named_after ?l . ?y rdf:type ontology:name . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?y } }
[]
Clarification
Comparative|Count over More/Less|Single entity type|Indirect
P138
Q486972 Q82799
USER
How many names are the eponym of lesser number of human settlements than that name ?
(c(Q82799),P138,c(Q486972))
[{'concept': 'Q82799'}, 'P138', {'concept': 'Q486972'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { ?z property:P138 ?y . ?z rdf:type ontology:Q82799 . ?y rdf:type ontology:Q486972 }
[{'concept': 'name'}, 'named after', {'concept': 'human settlement'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { ?z property:named_after ?y . ?z rdf:type ontology:name . ?y rdf:type ontology:human_settlement }
[]
human settlement name
Comparative|Count over More/Less|Single entity type|Clarification
Q24229341
SYSTEM
Did you mean Toscano ?
(c(Q82799),P138,c(Q486972))
[ANSWER]
[{'concept': 'Q82799'}, 'P138', {'concept': 'Q486972'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { ?z property:P138 ?y . ?z rdf:type ontology:Q82799 . ?y rdf:type ontology:Q486972 }
Did you mean Toscano ?
Toscano
[{'concept': 'name'}, 'named after', {'concept': 'human settlement'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { ?z property:named_after ?y . ?z rdf:type ontology:name . ?y rdf:type ontology:human_settlement }
[]
Comparative Reasoning (Count) (All)
USER
Yes
(c(Q82799),P138,c(Q486972))
[{'concept': 'Q82799'}, 'P138', {'concept': 'Q486972'}]
[{'concept': 'name'}, 'named after', {'concept': 'human settlement'}]
[]
SYSTEM
0
(c(Q82799),P138,c(Q486972))
[ANSWER]
[{'concept': 'Q82799'}, 'P138', {'concept': 'Q486972'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { ?z property:P138 ?y . ?z rdf:type ontology:Q82799 . ?y rdf:type ontology:Q486972 }
0
[{'concept': 'name'}, 'named after', {'concept': 'human settlement'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { ?z property:named_after ?y . ?z rdf:type ontology:name . ?y rdf:type ontology:human_settlement }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P1441
Q15416 Q838948 Q502895
USER
Which people appear in exactly 3 television programs and works of art ?
(c(Q502895),P1441,c(Q15416)|c(Q838948))
action equal
action union
action find_tuple_counts
relation P1441
type Q502895
type Q15416
action find_tuple_counts
relation P1441
type Q502895
type Q838948
value 3
[{'concept': 'Q502895'}, 'P1441', [{'concept': 'Q15416'}, {'concept': 'Q838948'}]]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?u ) AS ?r ) WHERE { VALUES ( ?b ) { ( ontology:Q838948 ) ( ontology:Q15416 ) } . ?u rdf:type ?b } GROUP BY ?j } . FILTER ( ?r = 3 ) }
action equal
action union
action find_tuple_counts
relation present in work
type common name
type television program
action find_tuple_counts
relation present in work
type common name
type work of art
value 3
[{'concept': 'common name'}, 'present in work', [{'concept': 'television program'}, {'concept': 'work of art'}]]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?u ) AS ?r ) WHERE { VALUES ( ?b ) { ( ontology:work_of_art ) ( ontology:television_program ) } . ?u rdf:type ?b } GROUP BY ?j } . FILTER ( ?r = 3 ) }
[]
television program work of art common name
Q23885172 Q37085
SYSTEM
Victor Petit, Solomon
Q23885172 Q37085
(c(Q502895),P1441,c(Q15416)|c(Q838948))
action equal
action union
action find_tuple_counts
relation P1441
type Q502895
type Q15416
action find_tuple_counts
relation P1441
type Q502895
type Q838948
value 3
[ANSWERS] appear in exactly 3 television programs and works of art
[{'concept': 'Q502895'}, 'P1441', [{'concept': 'Q15416'}, {'concept': 'Q838948'}]]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?u ) AS ?r ) WHERE { VALUES ( ?b ) { ( ontology:Q838948 ) ( ontology:Q15416 ) } . ?u rdf:type ?b } GROUP BY ?j } . FILTER ( ?r = 3 ) }
Victor Petit Solomon
Victor Petit and Solomon appear in exactly 3 television programs and works of art
Victor Petit Solomon
action equal
action union
action find_tuple_counts
relation present in work
type common name
type television program
action find_tuple_counts
relation present in work
type common name
type work of art
value 3
[{'concept': 'common name'}, 'present in work', [{'concept': 'television program'}, {'concept': 'work of art'}]]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?u ) AS ?r ) WHERE { VALUES ( ?b ) { ( ontology:work_of_art ) ( ontology:television_program ) } . ?u rdf:type ?b } GROUP BY ?j } . FILTER ( ?r = 3 ) }
[]
Clarification
Comparative|Count over More/Less|Single entity type|Indirect
P144
Q502895 Q15961987
USER
How many people are more number of television genres adapted from than that person ?
(c(Q15961987),P144,c(Q502895))
[{'concept': 'Q15961987'}, 'P144', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { ?z property:P144 ?y . ?z rdf:type ontology:Q15961987 . ?y rdf:type ontology:Q502895 }
[{'concept': 'television genre'}, 'based on', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { ?z property:based_on ?y . ?z rdf:type ontology:television_genre . ?y rdf:type ontology:common_name }
[]
common name television genre
Comparative|Count over More/Less|Single entity type|Clarification
Q23885172
SYSTEM
Did you mean Victor Petit ?
(c(Q15961987),P144,c(Q502895))
[ANSWER]
[{'concept': 'Q15961987'}, 'P144', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { ?z property:P144 ?y . ?z rdf:type ontology:Q15961987 . ?y rdf:type ontology:Q502895 }
Did you mean Victor Petit ?
Victor Petit
[{'concept': 'television genre'}, 'based on', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { ?z property:based_on ?y . ?z rdf:type ontology:television_genre . ?y rdf:type ontology:common_name }
[]
Comparative Reasoning (Count) (All)
USER
No, I meant Solomon. Could you tell me the answer for that?
(c(Q15961987),P144,c(Q502895))
Q37085
[{'concept': 'Q15961987'}, 'P144', {'concept': 'Q502895'}]
[{'concept': 'television genre'}, 'based on', {'concept': 'common name'}]
[]
SYSTEM
1
Q5358186
(c(Q15961987),P144,c(Q502895))
[ANSWER]
[{'concept': 'Q15961987'}, 'P144', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { ?z property:P144 ?y . ?z rdf:type ontology:Q15961987 . ?y rdf:type ontology:Q502895 }
Yarō Abe
1
[{'concept': 'television genre'}, 'based on', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { ?z property:based_on ?y . ?z rdf:type ontology:television_genre . ?y rdf:type ontology:common_name }
[]