Simple Question (Direct)
Simple Question
Q16323765
P1412
Q34770
USER
Which language can Juan Ignacio Dinenno read ?
(Q16323765,P1412,c(Q34770))
action filter_type
action find
entity Q16323765
relation P1412
type Q34770
['Q16323765', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?i WHERE { resource:Q16323765 property:P1412 ?i . ?i rdf:type ontology:Q34770 }
Juan Ignacio Dinenno
action filter_type
action find
entity Juan Ignacio Dinenno
relation languages spoken, written or signed
type language
['Juan Ignacio Dinenno', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?i WHERE { resource:Juan_Ignacio_Dinenno property:languages_spoken,_written_or_signed ?i . ?i rdf:type ontology:language }
[]
language
Q1321
SYSTEM
Spanish
Q1321
(Q16323765,P1412,c(Q34770))
action filter_type
action find
entity Q16323765
relation P1412
type Q34770
Juan Ignacio Dinenno can read in [ANSWER]
['Q16323765', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?i WHERE { resource:Q16323765 property:P1412 ?i . ?i rdf:type ontology:Q34770 }
Spanish
Juan Ignacio Dinenno can read in Spanish
Spanish
action filter_type
action find
entity Juan Ignacio Dinenno
relation languages spoken, written or signed
type language
['Juan Ignacio Dinenno', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?i WHERE { resource:Juan_Ignacio_Dinenno property:languages_spoken,_written_or_signed ?i . ?i rdf:type ontology:language }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q1321 Q468657
P1412
Q502895
USER
Does Irán Eory talk in that language ?
(Q468657,P1412,Q1321)
action is_in
entity Q1321
action find
entity Q468657
relation P1412
['Q468657', 'P1412', 'Q1321']
ASK WHERE { resource:Q468657 property:P1412 resource:Q1321 }
Spanish Irán Eory
action is_in
entity Spanish
action find
entity Irán Eory
relation languages spoken, written or signed
['Irán Eory', 'languages spoken, written or signed', 'Spanish']
ASK WHERE { resource:Irán_Eory property:languages_spoken,_written_or_signed resource:Spanish }
[]
common name
SYSTEM
YES
(Q468657,P1412,Q1321)
action is_in
entity Q1321
action find
entity Q468657
relation P1412
[ANSWER]
['Q468657', 'P1412', 'Q1321']
ASK WHERE { resource:Q468657 property:P1412 resource:Q1321 }
Yes
action is_in
entity Spanish
action find
entity Irán Eory
relation languages spoken, written or signed
['Irán Eory', 'languages spoken, written or signed', 'Spanish']
ASK WHERE { resource:Irán_Eory property:languages_spoken,_written_or_signed resource:Spanish }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q16323765
P641
Q349
USER
Which sport was Juan Ignacio Dinenno a part of ?
(Q16323765,P641,c(Q349))
action filter_type
action find
entity Q16323765
relation P641
type Q349
['Q16323765', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?z WHERE { resource:Q16323765 property:P641 ?z . ?z rdf:type ontology:Q349 }
Juan Ignacio Dinenno
action filter_type
action find
entity Juan Ignacio Dinenno
relation sport
type sport
['Juan Ignacio Dinenno', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?z WHERE { resource:Juan_Ignacio_Dinenno property:sport ?z . ?z rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q16323765,P641,c(Q349))
action filter_type
action find
entity Q16323765
relation P641
type Q349
The [ANSWER] was Juan Ignacio Dinenno a part of
['Q16323765', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?z WHERE { resource:Q16323765 property:P641 ?z . ?z rdf:type ontology:Q349 }
association football
The association football was Juan Ignacio Dinenno a part of
association football
action filter_type
action find
entity Juan Ignacio Dinenno
relation sport
type sport
['Juan Ignacio Dinenno', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?z WHERE { resource:Juan_Ignacio_Dinenno property:sport ?z . ?z rdf:type ontology:sport }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q16323765
P106
Q12737077
USER
What does that person do for a living ?
(Q2736,P106,c(Q12737077))
action filter_type
action find
entity Q16323765
relation P106
type Q12737077
['Q2736', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q12737077 . resource:Q16323765 property:P106 ?l }
Juan Ignacio Dinenno
action filter_type
action find
entity Juan Ignacio Dinenno
relation occupation
type occupation
['association football', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:occupation . resource:Juan_Ignacio_Dinenno property:occupation ?l }
[]
occupation
Q937857
SYSTEM
association football player
Q937857
(Q2736,P106,c(Q12737077))
action filter_type
action find
entity Q16323765
relation P106
type Q12737077
Player [ANSWER] that person does for a living
['Q2736', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q12737077 . resource:Q16323765 property:P106 ?l }
association football player
Player association football player that person does for a living
association football player
action filter_type
action find
entity Juan Ignacio Dinenno
relation occupation
type occupation
['association football', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:occupation . resource:Juan_Ignacio_Dinenno property:occupation ?l }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Indirect
P101
Q12737077 Q2342494 Q502895
USER
Which occupations are the fields of work of greater number of collectables or people than that occupation ?
(c(Q2342494)|c(Q502895),P101,c(Q12737077))
action greater
action union
action find_reverse_tuple_counts
relation P101
type Q12737077
type Q2342494
action find_reverse_tuple_counts
relation P101
type Q12737077
type Q502895
action count
action filter_multi_types
action find_reverse
entity Q937857
relation P101
type Q2342494
type Q502895
[[{'concept': 'Q2342494'}, {'concept': 'Q502895'}], 'P101', {'concept': 'Q12737077'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?n ) WHERE { ?k property:P101 resource:Q937857 . { { ?k rdf:type ontology:Q2342494 } UNION { ?k rdf:type ontology:Q502895 } } } } . FILTER ( ?h > ?n ) . { SELECT DISTINCT ?c ( COUNT ( ?s ) AS ?h ) WHERE { { ?c rdf:type ontology:Q12737077 . ?s rdf:type ontology:Q2342494 . ?s property:P101 ?c } UNION { ?s property:P101 ?c . ?c rdf:type ontology:Q12737077 . ?s rdf:type ontology:Q502895 } } GROUP BY ?c } }
action greater
action union
action find_reverse_tuple_counts
relation field of work
type occupation
type collectable
action find_reverse_tuple_counts
relation field of work
type occupation
type common name
action count
action filter_multi_types
action find_reverse
entity association football player
relation field of work
type collectable
type common name
[[{'concept': 'collectable'}, {'concept': 'common name'}], 'field of work', {'concept': 'occupation'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?n ) WHERE { ?k property:field_of_work resource:association_football_player . { { ?k rdf:type ontology:collectable } UNION { ?k rdf:type ontology:common_name } } } } . FILTER ( ?h > ?n ) . { SELECT DISTINCT ?c ( COUNT ( ?s ) AS ?h ) WHERE { { ?c rdf:type ontology:occupation . ?s rdf:type ontology:collectable . ?s property:field_of_work ?c } UNION { ?s property:field_of_work ?c . ?c rdf:type ontology:occupation . ?s rdf:type ontology:common_name } } GROUP BY ?c } }
[]
occupation collectable common name
Q16009483 Q1930187 Q212238
SYSTEM
sideshow performer, journalist, civil servant
Q6625963 Q177220 Q39631 Q33999 Q706364 Q17156912 Q333634 Q183888 Q593644 Q81096 Q170790 Q2405480 Q1930187 Q212238 Q131524 Q1172458 Q169470 Q201788 Q483501 Q1114448 Q1028181 Q36834 Q245068 Q16009483 Q1607826 Q639669 Q11774891 Q6981670
(c(Q2342494)|c(Q502895),P101,c(Q12737077))
action greater
action union
action find_reverse_tuple_counts
relation P101
type Q12737077
type Q2342494
action find_reverse_tuple_counts
relation P101
type Q12737077
type Q502895
action count
action filter_multi_types
action find_reverse
entity Q937857
relation P101
type Q2342494
type Q502895
[ANSWERS] are the fields of work of greater number of collectables or people than that occupation
[[{'concept': 'Q2342494'}, {'concept': 'Q502895'}], 'P101', {'concept': 'Q12737077'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?n ) WHERE { ?k property:P101 resource:Q937857 . { { ?k rdf:type ontology:Q2342494 } UNION { ?k rdf:type ontology:Q502895 } } } } . FILTER ( ?h > ?n ) . { SELECT DISTINCT ?c ( COUNT ( ?s ) AS ?h ) WHERE { { ?c rdf:type ontology:Q12737077 . ?s rdf:type ontology:Q2342494 . ?s property:P101 ?c } UNION { ?s property:P101 ?c . ?c rdf:type ontology:Q12737077 . ?s rdf:type ontology:Q502895 } } GROUP BY ?c } }
novelist singer physician actor art director malariologist translator software developer chemist engineer mathematician voice actor journalist civil servant entrepreneur muhaddith physicist historian artist cartoonist painter composer comedian sideshow performer editor musician ice hockey player Navajo weaving
Sideshow performer, journalist and civil servant are the fields of work of greater number of collectables or people than that occupation
sideshow performer journalist civil servant
action greater
action union
action find_reverse_tuple_counts
relation field of work
type occupation
type collectable
action find_reverse_tuple_counts
relation field of work
type occupation
type common name
action count
action filter_multi_types
action find_reverse
entity association football player
relation field of work
type collectable
type common name
[[{'concept': 'collectable'}, {'concept': 'common name'}], 'field of work', {'concept': 'occupation'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?n ) WHERE { ?k property:field_of_work resource:association_football_player . { { ?k rdf:type ontology:collectable } UNION { ?k rdf:type ontology:common_name } } } } . FILTER ( ?h > ?n ) . { SELECT DISTINCT ?c ( COUNT ( ?s ) AS ?h ) WHERE { { ?c rdf:type ontology:occupation . ?s rdf:type ontology:collectable . ?s property:field_of_work ?c } UNION { ?s property:field_of_work ?c . ?c rdf:type ontology:occupation . ?s rdf:type ontology:common_name } } GROUP BY ?c } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q16009483
P425
Q223393
USER
Which literary genre has that one as the associated field of occupation ?
(Q16009483,P425,c(Q223393))
action filter_type
action find
entity Q16009483
relation P425
type Q223393
['Q16009483', 'P425', {'concept': 'Q223393'}]
SELECT DISTINCT ?c WHERE { resource:Q16009483 property:P425 ?c . ?c rdf:type ontology:Q223393 }
sideshow performer
action filter_type
action find
entity sideshow performer
relation field of this occupation
type literary genre
['sideshow performer', 'field of this occupation', {'concept': 'literary genre'}]
SELECT DISTINCT ?c WHERE { resource:sideshow_performer property:field_of_this_occupation ?c . ?c rdf:type ontology:literary_genre }
[]
literary genre
Clarification for simple ques.
Q212238
SYSTEM
Did you mean civil servant ?
Q16009483 Q1930187 Q212238
(Q16009483,P425,c(Q223393)) (Q1930187,P425,c(Q223393)) (Q212238,P425,c(Q223393))
[ANSWER]
['Q16009483', 'P425', {'concept': 'Q223393'}] ['Q1930187', 'P425', {'concept': 'Q223393'}] ['Q212238', 'P425', {'concept': 'Q223393'}]
SELECT DISTINCT ?c WHERE { resource:Q16009483 property:P425 ?c . ?c rdf:type ontology:Q223393 }
sideshow performer journalist civil servant
Did you mean civil servant ?
civil servant
['sideshow performer', 'field of this occupation', {'concept': 'literary genre'}] ['journalist', 'field of this occupation', {'concept': 'literary genre'}] ['civil servant', 'field of this occupation', {'concept': 'literary genre'}]
SELECT DISTINCT ?c WHERE { resource:sideshow_performer property:field_of_this_occupation ?c . ?c rdf:type ontology:literary_genre }
[]
Simple Question (Coreferenced)
USER
No, I meant sideshow performer. Could you tell me the answer for that?
(Q16009483,P425,c(Q223393))
Q16009483
['Q16009483', 'P425', {'concept': 'Q223393'}]
['sideshow performer', 'field of this occupation', {'concept': 'literary genre'}]
[]
Q1534976
SYSTEM
sideshow
Q1534976
(Q16009483,P425,c(Q223393))
action filter_type
action find
entity Q16009483
relation P425
type Q223393
[ANSWER] has that one as the associated field of occupation
['Q16009483', 'P425', {'concept': 'Q223393'}]
SELECT DISTINCT ?c WHERE { resource:Q16009483 property:P425 ?c . ?c rdf:type ontology:Q223393 }
sideshow
Sideshow has that one as the associated field of occupation
sideshow
action filter_type
action find
entity sideshow performer
relation field of this occupation
type literary genre
['sideshow performer', 'field of this occupation', {'concept': 'literary genre'}]
SELECT DISTINCT ?c WHERE { resource:sideshow_performer property:field_of_this_occupation ?c . ?c rdf:type ontology:literary_genre }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q1534976 Q26694416
P425
Q12737077
USER
Does mayor of Sorlada have that literary genre as thier field of occupation ?
(Q26694416,P425,Q1534976)
action is_in
entity Q26694416
action find
entity Q1534976
relation P425
['Q26694416', 'P425', 'Q1534976']
ASK WHERE { resource:Q1534976 property:P425 resource:Q26694416 }
sideshow mayor of Sorlada
action is_in
entity mayor of Sorlada
action find
entity sideshow
relation field of this occupation
['mayor of Sorlada', 'field of this occupation', 'sideshow']
ASK WHERE { resource:sideshow property:field_of_this_occupation resource:mayor_of_Sorlada }
[]
occupation
SYSTEM
NO
(Q26694416,P425,Q1534976)
action is_in
entity Q26694416
action find
entity Q1534976
relation P425
[ANSWER]
['Q26694416', 'P425', 'Q1534976']
ASK WHERE { resource:Q1534976 property:P425 resource:Q26694416 }
No
action is_in
entity mayor of Sorlada
action find
entity sideshow
relation field of this occupation
['mayor of Sorlada', 'field of this occupation', 'sideshow']
ASK WHERE { resource:sideshow property:field_of_this_occupation resource:mayor_of_Sorlada }
[]