Simple Question (Direct)
Simple Question
Q1071598
P734
Q101352
USER
Who is associated with Ma Yin ?
(Q1071598,P734,c(Q101352))
action filter_type
action find
entity Q1071598
relation P734
type Q101352
['Q1071598', 'P734', {'concept': 'Q101352'}]
SELECT DISTINCT ?u WHERE { resource:Q1071598 property:P734 ?u . ?u rdf:type ontology:Q101352 }
Ma Yin
action filter_type
action find
entity Ma Yin
relation family name
type family name
['Ma Yin', 'family name', {'concept': 'family name'}]
SELECT DISTINCT ?u WHERE { resource:Ma_Yin property:family_name ?u . ?u rdf:type ontology:family_name }
[]
family name
Q1931708
SYSTEM
Ma
Q1931708
(Q1071598,P734,c(Q101352))
action filter_type
action find
entity Q1071598
relation P734
type Q101352
[ANSWER] is associated with [ANSWER] Yin
['Q1071598', 'P734', {'concept': 'Q101352'}]
SELECT DISTINCT ?u WHERE { resource:Q1071598 property:P734 ?u . ?u rdf:type ontology:Q101352 }
Ma
Ma is associated with Ma Yin
Ma
action filter_type
action find
entity Ma Yin
relation family name
type family name
['Ma Yin', 'family name', {'concept': 'family name'}]
SELECT DISTINCT ?u WHERE { resource:Ma_Yin property:family_name ?u . ?u rdf:type ontology:family_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1071598
P22
Q502895
USER
Which people have Ma Yin as father ?
(c(Q502895),P22,Q1071598)
action filter_type
action find_reverse
entity Q1071598
relation P22
type Q502895
[{'concept': 'Q502895'}, 'P22', 'Q1071598']
SELECT DISTINCT ?f WHERE { ?f property:P22 resource:Q1071598 . ?f rdf:type ontology:Q502895 }
Ma Yin
action filter_type
action find_reverse
entity Ma Yin
relation father
type common name
[{'concept': 'common name'}, 'father', 'Ma Yin']
SELECT DISTINCT ?f WHERE { ?f property:father resource:Ma_Yin . ?f rdf:type ontology:common_name }
[]
common name
Q6146182 Q6146263
SYSTEM
Ma Xifan, Ma Xisheng
Q6146182 Q6146263
(c(Q502895),P22,Q1071598)
action filter_type
action find_reverse
entity Q1071598
relation P22
type Q502895
[ANSWERS] have Ma Yin as father
[{'concept': 'Q502895'}, 'P22', 'Q1071598']
SELECT DISTINCT ?f WHERE { ?f property:P22 resource:Q1071598 . ?f rdf:type ontology:Q502895 }
Ma Xifan Ma Xisheng
Ma Xifan and Ma Xisheng have Ma Yin as father
Ma Xifan Ma Xisheng
action filter_type
action find_reverse
entity Ma Yin
relation father
type common name
[{'concept': 'common name'}, 'father', 'Ma Yin']
SELECT DISTINCT ?f WHERE { ?f property:father resource:Ma_Yin . ?f rdf:type ontology:common_name }
[]
Clarification
Simple Question|Single Entity|Indirect
Q6146182
P26
Q502895
USER
Who is the spouse of that one ?
(c(Q502895),P26,Q6146182)
action filter_type
action find
entity Q6146182
relation P26
type Q502895
[{'concept': 'Q502895'}, 'P26', 'Q6146182']
SELECT DISTINCT ?q WHERE { resource:Q6146182 property:P26 ?q . ?q rdf:type ontology:Q502895 }
Ma Xifan
action filter_type
action find
entity Ma Xifan
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Ma Xifan']
SELECT DISTINCT ?q WHERE { resource:Ma_Xifan property:spouse ?q . ?q rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q6146182
SYSTEM
Did you mean Ma Xifan ?
Q6146182 Q6146263
(c(Q502895),P26,Q6146182) (c(Q502895),P26,Q6146263)
[ANSWER]
[{'concept': 'Q502895'}, 'P26', 'Q6146182'] [{'concept': 'Q502895'}, 'P26', 'Q6146263']
SELECT DISTINCT ?q WHERE { resource:Q6146182 property:P26 ?q . ?q rdf:type ontology:Q502895 }
Ma Xifan Ma Xisheng
Did you mean Ma Xifan ?
Ma Xifan
[{'concept': 'common name'}, 'spouse', 'Ma Xifan'] [{'concept': 'common name'}, 'spouse', 'Ma Xisheng']
SELECT DISTINCT ?q WHERE { resource:Ma_Xifan property:spouse ?q . ?q rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q502895),P26,Q6146182)
[{'concept': 'Q502895'}, 'P26', 'Q6146182']
[{'concept': 'common name'}, 'spouse', 'Ma Xifan']
[]
Q15623464
SYSTEM
Lady Peng
Q15623464
(c(Q502895),P26,Q6146182)
action filter_type
action find
entity Q6146182
relation P26
type Q502895
The spouse of that one is the [ANSWER]
[{'concept': 'Q502895'}, 'P26', 'Q6146182']
SELECT DISTINCT ?q WHERE { resource:Q6146182 property:P26 ?q . ?q rdf:type ontology:Q502895 }
Lady Peng
The spouse of that one is the Lady Peng
Lady Peng
action filter_type
action find
entity Ma Xifan
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Ma Xifan']
SELECT DISTINCT ?q WHERE { resource:Ma_Xifan property:spouse ?q . ?q rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q15623464
P26
Q502895
USER
Who is married to that one ?
(c(Q502895),P26,Q15623464)
action filter_type
action find
entity Q15623464
relation P26
type Q502895
[{'concept': 'Q502895'}, 'P26', 'Q15623464']
SELECT DISTINCT ?x WHERE { resource:Q15623464 property:P26 ?x . ?x rdf:type ontology:Q502895 }
Lady Peng
action filter_type
action find
entity Lady Peng
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Lady Peng']
SELECT DISTINCT ?x WHERE { resource:Lady_Peng property:spouse ?x . ?x rdf:type ontology:common_name }
[]
common name
Q6146182
SYSTEM
Ma Xifan
Q6146182
(c(Q502895),P26,Q15623464)
action filter_type
action find
entity Q15623464
relation P26
type Q502895
[ANSWER] is married to that one
[{'concept': 'Q502895'}, 'P26', 'Q15623464']
SELECT DISTINCT ?x WHERE { resource:Q15623464 property:P26 ?x . ?x rdf:type ontology:Q502895 }
Ma Xifan
Ma Xifan is married to that one
Ma Xifan
action filter_type
action find
entity Lady Peng
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Lady Peng']
SELECT DISTINCT ?x WHERE { resource:Lady_Peng property:spouse ?x . ?x rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6146182
P21
Q290
USER
Which sex does that person have ?
(Q6146182,P21,c(Q290))
action filter_type
action find
entity Q6146182
relation P21
type Q290
['Q6146182', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?v WHERE { resource:Q6146182 property:P21 ?v . ?v rdf:type ontology:Q290 }
Ma Xifan
action filter_type
action find
entity Ma Xifan
relation gender
type sex
['Ma Xifan', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?v WHERE { resource:Ma_Xifan property:gender ?v . ?v rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q6146182,P21,c(Q290))
action filter_type
action find
entity Q6146182
relation P21
type Q290
That person has a [ANSWER]
['Q6146182', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?v WHERE { resource:Q6146182 property:P21 ?v . ?v rdf:type ontology:Q290 }
male
That person has a male
male
action filter_type
action find
entity Ma Xifan
relation gender
type sex
['Ma Xifan', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?v WHERE { resource:Ma_Xifan property:gender ?v . ?v rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6146182
P7
Q502895
USER
Who is the brother of that one ?
(Q6581097,P7,c(Q502895))
action filter_type
action find
entity Q6146182
relation P7
type Q502895
['Q6581097', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ?j WHERE { resource:Q6146182 property:P7 ?j . ?j rdf:type ontology:Q502895 }
Ma Xifan
action filter_type
action find
entity Ma Xifan
relation brother
type common name
['male', 'brother', {'concept': 'common name'}]
SELECT DISTINCT ?j WHERE { resource:Ma_Xifan property:brother ?j . ?j rdf:type ontology:common_name }
[]
common name
Q6146263
SYSTEM
Ma Xisheng
Q6146263
(Q6581097,P7,c(Q502895))
action filter_type
action find
entity Q6146182
relation P7
type Q502895
The brother of that one is the [ANSWER]
['Q6581097', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ?j WHERE { resource:Q6146182 property:P7 ?j . ?j rdf:type ontology:Q502895 }
Ma Xisheng
The brother of that one is the Ma Xisheng
Ma Xisheng
action filter_type
action find
entity Ma Xifan
relation brother
type common name
['male', 'brother', {'concept': 'common name'}]
SELECT DISTINCT ?j WHERE { resource:Ma_Xifan property:brother ?j . ?j rdf:type ontology:common_name }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P35
Q502895 Q35798 Q15617994
USER
Which people are the heads of state of max number of executive branches or administrative territories ?
(c(Q35798)|c(Q15617994),P35,c(Q502895))
action argmax
action union
action find_reverse_tuple_counts
relation P35
type Q502895
type Q35798
action find_reverse_tuple_counts
relation P35
type Q502895
type Q15617994
[[{'concept': 'Q35798'}, {'concept': 'Q15617994'}], 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( MAX ( ?m ) AS ?l ) { SELECT DISTINCT ( COUNT ( ?u ) AS ?m ) ?k WHERE { VALUES ( ?t ) { ( ontology:Q15617994 ) ( ontology:Q35798 ) } . ?u rdf:type ?t } GROUP BY ?k } } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?z ) ?y WHERE { { ?y rdf:type ontology:Q502895 . ?h rdf:type ontology:Q35798 . ?h property:P35 ?y } UNION { ?y rdf:type ontology:Q502895 . ?h rdf:type ontology:Q15617994 . ?h property:P35 ?y } } GROUP BY ?y } . FILTER ( ?z = ?l ) }
action argmax
action union
action find_reverse_tuple_counts
relation head of state
type common name
type executive branch
action find_reverse_tuple_counts
relation head of state
type common name
type designation for an administrative territorial entity
[[{'concept': 'executive branch'}, {'concept': 'designation for an administrative territorial entity'}], 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( MAX ( ?m ) AS ?l ) { SELECT DISTINCT ( COUNT ( ?u ) AS ?m ) ?k WHERE { VALUES ( ?t ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:executive_branch ) } . ?u rdf:type ?t } GROUP BY ?k } } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?z ) ?y WHERE { { ?y rdf:type ontology:common_name . ?h rdf:type ontology:executive_branch . ?h property:head_of_state ?y } UNION { ?y rdf:type ontology:common_name . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . ?h property:head_of_state ?y } } GROUP BY ?y } . FILTER ( ?z = ?l ) }
[]
common name executive branch designation for an administrative territorial entity
Q150642
SYSTEM
Vittorio Emanuele III
Q150642
(c(Q35798)|c(Q15617994),P35,c(Q502895))
action argmax
action union
action find_reverse_tuple_counts
relation P35
type Q502895
type Q35798
action find_reverse_tuple_counts
relation P35
type Q502895
type Q15617994
[ANSWER] is the heads of state of max number of executive branches or administrative territories
[[{'concept': 'Q35798'}, {'concept': 'Q15617994'}], 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( MAX ( ?m ) AS ?l ) { SELECT DISTINCT ( COUNT ( ?u ) AS ?m ) ?k WHERE { VALUES ( ?t ) { ( ontology:Q15617994 ) ( ontology:Q35798 ) } . ?u rdf:type ?t } GROUP BY ?k } } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?z ) ?y WHERE { { ?y rdf:type ontology:Q502895 . ?h rdf:type ontology:Q35798 . ?h property:P35 ?y } UNION { ?y rdf:type ontology:Q502895 . ?h rdf:type ontology:Q15617994 . ?h property:P35 ?y } } GROUP BY ?y } . FILTER ( ?z = ?l ) }
Vittorio Emanuele III
Vittorio Emanuele III is the heads of state of max number of executive branches or administrative territories
Vittorio Emanuele III
action argmax
action union
action find_reverse_tuple_counts
relation head of state
type common name
type executive branch
action find_reverse_tuple_counts
relation head of state
type common name
type designation for an administrative territorial entity
[[{'concept': 'executive branch'}, {'concept': 'designation for an administrative territorial entity'}], 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( MAX ( ?m ) AS ?l ) { SELECT DISTINCT ( COUNT ( ?u ) AS ?m ) ?k WHERE { VALUES ( ?t ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:executive_branch ) } . ?u rdf:type ?t } GROUP BY ?k } } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?z ) ?y WHERE { { ?y rdf:type ontology:common_name . ?h rdf:type ontology:executive_branch . ?h property:head_of_state ?y } UNION { ?y rdf:type ontology:common_name . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . ?h property:head_of_state ?y } } GROUP BY ?y } . FILTER ( ?z = ?l ) }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q150642 Q153688
P22
Q502895
USER
Was Umberto I of Italy the dad of Vittorio Emanuele III ?
(Q150642,P22,Q153688)
action is_in
entity Q153688
action find
entity Q150642
relation P22
['Q150642', 'P22', 'Q153688']
ASK WHERE { resource:Q150642 property:P22 resource:Q153688 }
Vittorio Emanuele III Umberto I of Italy
action is_in
entity Umberto I of Italy
action find
entity Vittorio Emanuele III
relation father
['Vittorio Emanuele III', 'father', 'Umberto I of Italy']
ASK WHERE { resource:Vittorio_Emanuele_III property:father resource:Umberto_I_of_Italy }
[]
common name
SYSTEM
YES
(Q150642,P22,Q153688)
action is_in
entity Q153688
action find
entity Q150642
relation P22
[ANSWER]
['Q150642', 'P22', 'Q153688']
ASK WHERE { resource:Q150642 property:P22 resource:Q153688 }
Yes
action is_in
entity Umberto I of Italy
action find
entity Vittorio Emanuele III
relation father
['Vittorio Emanuele III', 'father', 'Umberto I of Italy']
ASK WHERE { resource:Vittorio_Emanuele_III property:father resource:Umberto_I_of_Italy }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q150642
P35
Q7275 Q35798
USER
How many states or executive branches are headed by Vittorio Emanuele III ?
(c(Q7275),P35,Q150642) (c(Q35798),P35,Q150642)
action count
action union
action filter_type
action find_reverse
entity Q150642
relation P35
type Q7275
action filter_type
action find_reverse
entity Q150642
relation P35
type Q35798
[{'concept': 'Q7275'}, 'P35', 'Q150642'] [{'concept': 'Q35798'}, 'P35', 'Q150642']
SELECT DISTINCT ( COUNT ( ?a ) AS ?j ) WHERE { { ?a property:P35 resource:Q150642 . ?a rdf:type ontology:Q7275 } UNION { ?a property:P35 resource:Q150642 . ?a rdf:type ontology:Q35798 } }
Vittorio Emanuele III
action count
action union
action filter_type
action find_reverse
entity Vittorio Emanuele III
relation head of state
type state
action filter_type
action find_reverse
entity Vittorio Emanuele III
relation head of state
type executive branch
[{'concept': 'state'}, 'head of state', 'Vittorio Emanuele III'] [{'concept': 'executive branch'}, 'head of state', 'Vittorio Emanuele III']
SELECT DISTINCT ( COUNT ( ?a ) AS ?j ) WHERE { { ?a property:head_of_state resource:Vittorio_Emanuele_III . ?a rdf:type ontology:state } UNION { ?a property:head_of_state resource:Vittorio_Emanuele_III . ?a rdf:type ontology:executive_branch } }
[]
state executive branch
SYSTEM
29
Q3773861 Q3773860 Q3773849 Q3773803 Q3773867 Q3773909 Q3773906 Q3773907 Q3773847 Q2649128 Q3773908 Q3773800 Q3773869 Q3773959 Q3773958 Q3773868 Q3773953 Q3773952 Q3773799 Q3773793 Q3773794 Q172579 Q3112309 Q3773866 Q3773886 Q3773801 Q3773942 Q3773940 Q3773944
(c(Q7275),P35,Q150642) (c(Q35798),P35,Q150642)
action count
action union
action filter_type
action find_reverse
entity Q150642
relation P35
type Q7275
action filter_type
action find_reverse
entity Q150642
relation P35
type Q35798
[ANSWER]
[{'concept': 'Q7275'}, 'P35', 'Q150642'] [{'concept': 'Q35798'}, 'P35', 'Q150642']
SELECT DISTINCT ( COUNT ( ?a ) AS ?j ) WHERE { { ?a property:P35 resource:Q150642 . ?a rdf:type ontology:Q7275 } UNION { ?a property:P35 resource:Q150642 . ?a rdf:type ontology:Q35798 } }
Fortis II Cabinet Fortis I Cabinet Facta II Cabinet Boselli Cabinet Giolitti III Cabinet Parri Cabinet Nitti I Cabinet Nitti II Cabinet Facta I Cabinet De Gasperi I Cabinet Orlando Cabinet Bonomi I Cabinet Giolitti V Cabinet Zanardelli Cabinet Tittoni Cabinet Giolitti IV Cabinet Sonnino II Cabinet Sonnino I Cabinet Bonomi II Cabinet Badoglio I Cabinet Badoglio II Cabinet Kingdom of Italy Mussolini Cabinet Giolitti II Cabinet Luzzatti Cabinet Bonomi III Cabinet Salandra II Cabinet Salandra I Cabinet Saracco Cabinet
29
action count
action union
action filter_type
action find_reverse
entity Vittorio Emanuele III
relation head of state
type state
action filter_type
action find_reverse
entity Vittorio Emanuele III
relation head of state
type executive branch
[{'concept': 'state'}, 'head of state', 'Vittorio Emanuele III'] [{'concept': 'executive branch'}, 'head of state', 'Vittorio Emanuele III']
SELECT DISTINCT ( COUNT ( ?a ) AS ?j ) WHERE { { ?a property:head_of_state resource:Vittorio_Emanuele_III . ?a rdf:type ontology:state } UNION { ?a property:head_of_state resource:Vittorio_Emanuele_III . ?a rdf:type ontology:executive_branch } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q150642
P161
Q201658
USER
Which film genre stars Vittorio Emanuele III as actor ?
(c(Q201658),P161,Q150642)
action filter_type
action find_reverse
entity Q150642
relation P161
type Q201658
[{'concept': 'Q201658'}, 'P161', 'Q150642']
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q201658 . ?b property:P161 resource:Q150642 }
Vittorio Emanuele III
action filter_type
action find_reverse
entity Vittorio Emanuele III
relation cast member
type film genre
[{'concept': 'film genre'}, 'cast member', 'Vittorio Emanuele III']
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:film_genre . ?b property:cast_member resource:Vittorio_Emanuele_III }
[]
film genre
Q1969820
SYSTEM
The Eternal City
Q1969820
(c(Q201658),P161,Q150642)
action filter_type
action find_reverse
entity Q150642
relation P161
type Q201658
[ANSWER] stars Vittorio Emanuele III as actor
[{'concept': 'Q201658'}, 'P161', 'Q150642']
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q201658 . ?b property:P161 resource:Q150642 }
The Eternal City
The Eternal City stars Vittorio Emanuele III as actor
The Eternal City
action filter_type
action find_reverse
entity Vittorio Emanuele III
relation cast member
type film genre
[{'concept': 'film genre'}, 'cast member', 'Vittorio Emanuele III']
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:film_genre . ?b property:cast_member resource:Vittorio_Emanuele_III }
[]