Simple Question (Direct)
Simple Question
Q5042719
P102
Q7210356
USER
Which party is Carlos Trejo Lerdo de Tejada affiliated with ?
(Q5042719,P102,c(Q7210356))
action filter_type
action find
entity Q5042719
relation P102
type Q7210356
['Q5042719', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?r WHERE { resource:Q5042719 property:P102 ?r . ?r rdf:type ontology:Q7210356 }
Carlos Trejo Lerdo de Tejada
action filter_type
action find
entity Carlos Trejo Lerdo de Tejada
relation member of political party
type political organization
['Carlos Trejo Lerdo de Tejada', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?r WHERE { resource:Carlos_Trejo_Lerdo_de_Tejada property:member_of_political_party ?r . ?r rdf:type ontology:political_organization }
[]
political organization
Q682969
SYSTEM
Institutional Revolutionary Party
Q682969
(Q5042719,P102,c(Q7210356))
action filter_type
action find
entity Q5042719
relation P102
type Q7210356
Carlos Trejo Lerdo de Tejada is affiliated with [ANSWER]
['Q5042719', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?r WHERE { resource:Q5042719 property:P102 ?r . ?r rdf:type ontology:Q7210356 }
Institutional Revolutionary Party
Carlos Trejo Lerdo de Tejada is affiliated with Institutional Revolutionary Party
Institutional Revolutionary Party
action filter_type
action find
entity Carlos Trejo Lerdo de Tejada
relation member of political party
type political organization
['Carlos Trejo Lerdo de Tejada', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?r WHERE { resource:Carlos_Trejo_Lerdo_de_Tejada property:member_of_political_party ?r . ?r rdf:type ontology:political_organization }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5042719
P106
Q12737077
USER
What do Carlos Trejo Lerdo de Tejada do for a living ?
(Q5042719,P106,c(Q12737077))
action filter_type
action find
entity Q5042719
relation P106
type Q12737077
['Q5042719', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?r WHERE { resource:Q5042719 property:P106 ?r . ?r rdf:type ontology:Q12737077 }
Carlos Trejo Lerdo de Tejada
action filter_type
action find
entity Carlos Trejo Lerdo de Tejada
relation occupation
type occupation
['Carlos Trejo Lerdo de Tejada', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?r WHERE { resource:Carlos_Trejo_Lerdo_de_Tejada property:occupation ?r . ?r rdf:type ontology:occupation }
[]
occupation
Q193391 Q82955
SYSTEM
diplomat, politician
Q193391 Q82955
(Q5042719,P106,c(Q12737077))
action filter_type
action find
entity Q5042719
relation P106
type Q12737077
Carlos Trejo Lerdo de Tejada do [ANSWERS] for a living
['Q5042719', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?r WHERE { resource:Q5042719 property:P106 ?r . ?r rdf:type ontology:Q12737077 }
diplomat politician
Carlos Trejo Lerdo de Tejada do diplomat and politician for a living
diplomat politician
action filter_type
action find
entity Carlos Trejo Lerdo de Tejada
relation occupation
type occupation
['Carlos Trejo Lerdo de Tejada', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?r WHERE { resource:Carlos_Trejo_Lerdo_de_Tejada property:occupation ?r . ?r rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q193391 Q82955
P39
Q502895
USER
Which people were appointed for the position of those occupations ?
(c(Q502895),P39,Q193391) (c(Q502895),P39,Q82955)
action filter_type
action find_reverse
entity prev_answer
relation P39
type Q502895
[{'concept': 'Q502895'}, 'P39', 'Q193391'] [{'concept': 'Q502895'}, 'P39', 'Q82955']
SELECT DISTINCT ?y WHERE { ?y property:P39 ?o . VALUES ( ?o ) { ( resource:Q193391 ) ( resource:Q82955 ) } . ?y rdf:type ontology:Q502895 }
diplomat politician
action filter_type
action find_reverse
entity prev_answer
relation position held
type common name
[{'concept': 'common name'}, 'position held', 'diplomat'] [{'concept': 'common name'}, 'position held', 'politician']
SELECT DISTINCT ?y WHERE { ?y property:position_held ?o . VALUES ( ?o ) { ( resource:diplomat ) ( resource:politician ) } . ?y rdf:type ontology:common_name }
[]
common name
Q26215129 Q16912378 Q19828328
SYSTEM
Morteza Azari, Alexandre Melnik, Antonio Caselli
Q699131 Q19828328 Q16912378 Q26215129
(c(Q502895),P39,Q193391) (c(Q502895),P39,Q82955)
action filter_type
action find_reverse
entity prev_answer
relation P39
type Q502895
[ANSWERS] were appointed for the position of those occupations
[{'concept': 'Q502895'}, 'P39', 'Q193391'] [{'concept': 'Q502895'}, 'P39', 'Q82955']
SELECT DISTINCT ?y WHERE { ?y property:P39 ?o . VALUES ( ?o ) { ( resource:Q193391 ) ( resource:Q82955 ) } . ?y rdf:type ontology:Q502895 }
Xiong Xianghui Antonio Caselli Alexandre Melnik Morteza Azari
Morteza Azari, Alexandre Melnik and Antonio Caselli were appointed for the position of those occupations
Morteza Azari Alexandre Melnik Antonio Caselli
action filter_type
action find_reverse
entity prev_answer
relation position held
type common name
[{'concept': 'common name'}, 'position held', 'diplomat'] [{'concept': 'common name'}, 'position held', 'politician']
SELECT DISTINCT ?y WHERE { ?y property:position_held ?o . VALUES ( ?o ) { ( resource:diplomat ) ( resource:politician ) } . ?y rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q26215129 Q16912378 Q19828328
P106
Q12737077
USER
Which occupations have Morteza Azari, Alexandre Melnik and Antonio Caselli as his/her 's career ?
(Q26215129,P106,c(Q12737077)) (Q16912378,P106,c(Q12737077)) (Q19828328,P106,c(Q12737077))
action union
action filter_type
action find
entity Q26215129
relation P106
type Q12737077
action filter_type
action find
entity Q16912378
relation P106
type Q12737077
action filter_type
action find
entity Q19828328
relation P106
type Q12737077
['Q26215129', 'P106', {'concept': 'Q12737077'}] ['Q16912378', 'P106', {'concept': 'Q12737077'}] ['Q19828328', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?t WHERE { { resource:Q26215129 property:P106 ?t . ?t rdf:type ontology:Q12737077 } UNION { resource:Q16912378 property:P106 ?t . ?t rdf:type ontology:Q12737077 } }
Morteza Azari Alexandre Melnik Antonio Caselli
action union
action filter_type
action find
entity Morteza Azari
relation occupation
type occupation
action filter_type
action find
entity Alexandre Melnik
relation occupation
type occupation
action filter_type
action find
entity Antonio Caselli
relation occupation
type occupation
['Morteza Azari', 'occupation', {'concept': 'occupation'}] ['Alexandre Melnik', 'occupation', {'concept': 'occupation'}] ['Antonio Caselli', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?t WHERE { { resource:Morteza_Azari property:occupation ?t . ?t rdf:type ontology:occupation } UNION { resource:Alexandre_Melnik property:occupation ?t . ?t rdf:type ontology:occupation } }
[]
occupation
Q1238570 Q14467526 Q184402
SYSTEM
political scientist, linguist, ayatollah
Q14467526 Q184402 Q1238570 Q82955 Q131524
(Q26215129,P106,c(Q12737077)) (Q16912378,P106,c(Q12737077)) (Q19828328,P106,c(Q12737077))
action union
action filter_type
action find
entity Q26215129
relation P106
type Q12737077
action filter_type
action find
entity Q16912378
relation P106
type Q12737077
action filter_type
action find
entity Q19828328
relation P106
type Q12737077
The [ANSWERS] have Morteza Azari, Alexandre Melnik and Antonio Caselli as his/her 's career
['Q26215129', 'P106', {'concept': 'Q12737077'}] ['Q16912378', 'P106', {'concept': 'Q12737077'}] ['Q19828328', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?t WHERE { { resource:Q26215129 property:P106 ?t . ?t rdf:type ontology:Q12737077 } UNION { resource:Q16912378 property:P106 ?t . ?t rdf:type ontology:Q12737077 } }
linguist ayatollah political scientist politician entrepreneur
The political scientist, linguist and ayatollah have Morteza Azari, Alexandre Melnik and Antonio Caselli as his/her 's career
political scientist linguist ayatollah
action union
action filter_type
action find
entity Morteza Azari
relation occupation
type occupation
action filter_type
action find
entity Alexandre Melnik
relation occupation
type occupation
action filter_type
action find
entity Antonio Caselli
relation occupation
type occupation
['Morteza Azari', 'occupation', {'concept': 'occupation'}] ['Alexandre Melnik', 'occupation', {'concept': 'occupation'}] ['Antonio Caselli', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?t WHERE { { resource:Morteza_Azari property:occupation ?t . ?t rdf:type ontology:occupation } UNION { resource:Alexandre_Melnik property:occupation ?t . ?t rdf:type ontology:occupation } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q1238570
P921
Q2342494
USER
Which collectable has that occupation as its main topic ?
(c(Q2342494),P921,Q1238570)
action filter_type
action find_reverse
entity Q1238570
relation P921
type Q2342494
[{'concept': 'Q2342494'}, 'P921', 'Q1238570']
SELECT DISTINCT ?c WHERE { ?c property:P921 resource:Q1238570 . ?c rdf:type ontology:Q2342494 }
political scientist
action filter_type
action find_reverse
entity political scientist
relation main subject
type collectable
[{'concept': 'collectable'}, 'main subject', 'political scientist']
SELECT DISTINCT ?c WHERE { ?c property:main_subject resource:political_scientist . ?c rdf:type ontology:collectable }
[]
collectable
Clarification for simple ques.
Q184402
SYSTEM
Did you mean ayatollah ?
Q1238570 Q14467526 Q184402
(c(Q2342494),P921,Q1238570) (c(Q2342494),P921,Q14467526) (c(Q2342494),P921,Q184402)
[ANSWER]
[{'concept': 'Q2342494'}, 'P921', 'Q1238570'] [{'concept': 'Q2342494'}, 'P921', 'Q14467526'] [{'concept': 'Q2342494'}, 'P921', 'Q184402']
SELECT DISTINCT ?c WHERE { ?c property:P921 resource:Q1238570 . ?c rdf:type ontology:Q2342494 }
political scientist linguist ayatollah
Did you mean ayatollah ?
ayatollah
[{'concept': 'collectable'}, 'main subject', 'political scientist'] [{'concept': 'collectable'}, 'main subject', 'linguist'] [{'concept': 'collectable'}, 'main subject', 'ayatollah']
SELECT DISTINCT ?c WHERE { ?c property:main_subject resource:political_scientist . ?c rdf:type ontology:collectable }
[]
Simple Question (Coreferenced)
USER
No, I meant political scientist. Could you tell me the answer for that?
(c(Q2342494),P921,Q1238570)
Q1238570
[{'concept': 'Q2342494'}, 'P921', 'Q1238570']
[{'concept': 'collectable'}, 'main subject', 'political scientist']
[]
Q20719613
SYSTEM
American political scientists
Q20719613
(c(Q2342494),P921,Q1238570)
action filter_type
action find_reverse
entity Q1238570
relation P921
type Q2342494
[ANSWER] has that occupation as its main topic
[{'concept': 'Q2342494'}, 'P921', 'Q1238570']
SELECT DISTINCT ?c WHERE { ?c property:P921 resource:Q1238570 . ?c rdf:type ontology:Q2342494 }
American political scientists
American political scientists has that occupation as its main topic
American political scientists
action filter_type
action find_reverse
entity political scientist
relation main subject
type collectable
[{'concept': 'collectable'}, 'main subject', 'political scientist']
SELECT DISTINCT ?c WHERE { ?c property:main_subject resource:political_scientist . ?c rdf:type ontology:collectable }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Indirect
P629
Q2342494 Q2342494 Q1914636
USER
How many collectables have lesser number of collectables and activities as the translation than that collectable ?
(c(Q2342494)|c(Q1914636),P629,c(Q2342494))
action count
action less
action union
action find_reverse_tuple_counts
relation P629
type Q2342494
type Q2342494
action find_reverse_tuple_counts
relation P629
type Q2342494
type Q1914636
action count
action filter_multi_types
action find_reverse
entity Q20719613
relation P629
type Q2342494
type Q1914636
[[{'concept': 'Q2342494'}, {'concept': 'Q1914636'}], 'P629', {'concept': 'Q2342494'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?p ) WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?s ) ?l WHERE { VALUES ( ?m ) { ( ontology:Q2342494 ) ( ontology:Q1914636 ) } . ?b rdf:type ?m } GROUP BY ?l } . FILTER ( ?s < ?k ) . { SELECT DISTINCT ( COUNT ( ?d ) AS ?k ) WHERE { ?d property:P629 resource:Q20719613 . { ?d rdf:type ?x . VALUES ( ?x ) { ( ontology:Q1914636 ) ( ontology:Q2342494 ) } } } } }
action count
action less
action union
action find_reverse_tuple_counts
relation edition or translation of
type collectable
type collectable
action find_reverse_tuple_counts
relation edition or translation of
type collectable
type activity
action count
action filter_multi_types
action find_reverse
entity American political scientists
relation edition or translation of
type collectable
type activity
[[{'concept': 'collectable'}, {'concept': 'activity'}], 'edition or translation of', {'concept': 'collectable'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?p ) WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?s ) ?l WHERE { VALUES ( ?m ) { ( ontology:collectable ) ( ontology:activity ) } . ?b rdf:type ?m } GROUP BY ?l } . FILTER ( ?s < ?k ) . { SELECT DISTINCT ( COUNT ( ?d ) AS ?k ) WHERE { ?d property:edition_or_translation_of resource:American_political_scientists . { ?d rdf:type ?x . VALUES ( ?x ) { ( ontology:activity ) ( ontology:collectable ) } } } } }
[]
collectable collectable activity
SYSTEM
0
(c(Q2342494)|c(Q1914636),P629,c(Q2342494))
action count
action less
action union
action find_reverse_tuple_counts
relation P629
type Q2342494
type Q2342494
action find_reverse_tuple_counts
relation P629
type Q2342494
type Q1914636
action count
action filter_multi_types
action find_reverse
entity Q20719613
relation P629
type Q2342494
type Q1914636
[ANSWER]
[[{'concept': 'Q2342494'}, {'concept': 'Q1914636'}], 'P629', {'concept': 'Q2342494'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?p ) WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?s ) ?l WHERE { VALUES ( ?m ) { ( ontology:Q2342494 ) ( ontology:Q1914636 ) } . ?b rdf:type ?m } GROUP BY ?l } . FILTER ( ?s < ?k ) . { SELECT DISTINCT ( COUNT ( ?d ) AS ?k ) WHERE { ?d property:P629 resource:Q20719613 . { ?d rdf:type ?x . VALUES ( ?x ) { ( ontology:Q1914636 ) ( ontology:Q2342494 ) } } } } }
0
action count
action less
action union
action find_reverse_tuple_counts
relation edition or translation of
type collectable
type collectable
action find_reverse_tuple_counts
relation edition or translation of
type collectable
type activity
action count
action filter_multi_types
action find_reverse
entity American political scientists
relation edition or translation of
type collectable
type activity
[[{'concept': 'collectable'}, {'concept': 'activity'}], 'edition or translation of', {'concept': 'collectable'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?p ) WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?s ) ?l WHERE { VALUES ( ?m ) { ( ontology:collectable ) ( ontology:activity ) } . ?b rdf:type ?m } GROUP BY ?l } . FILTER ( ?s < ?k ) . { SELECT DISTINCT ( COUNT ( ?d ) AS ?k ) WHERE { ?d property:edition_or_translation_of resource:American_political_scientists . { ?d rdf:type ?x . VALUES ( ?x ) { ( ontology:activity ) ( ontology:collectable ) } } } } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q82955
P921
Q223393
USER
Which literary genre was primarily based on politician ?
(c(Q223393),P921,Q82955)
action filter_type
action find_reverse
entity Q82955
relation P921
type Q223393
[{'concept': 'Q223393'}, 'P921', 'Q82955']
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q223393 . ?k property:P921 resource:Q82955 }
politician
action filter_type
action find_reverse
entity politician
relation main subject
type literary genre
[{'concept': 'literary genre'}, 'main subject', 'politician']
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:literary_genre . ?k property:main_subject resource:politician }
[]
literary genre
Q21815179
SYSTEM
worldstatesmen
Q21815179
(c(Q223393),P921,Q82955)
action filter_type
action find_reverse
entity Q82955
relation P921
type Q223393
[ANSWER] was primarily based on politician
[{'concept': 'Q223393'}, 'P921', 'Q82955']
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q223393 . ?k property:P921 resource:Q82955 }
worldstatesmen
Worldstatesmen was primarily based on politician
worldstatesmen
action filter_type
action find_reverse
entity politician
relation main subject
type literary genre
[{'concept': 'literary genre'}, 'main subject', 'politician']
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:literary_genre . ?k property:main_subject resource:politician }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q82955
P425
Q3769299
USER
Which human behaviour is associated with the field of occupation that one ?
(Q21815179,P425,c(Q3769299))
action filter_type
action find
entity Q82955
relation P425
type Q3769299
['Q21815179', 'P425', {'concept': 'Q3769299'}]
SELECT DISTINCT ?f WHERE { resource:Q82955 property:P425 ?f . ?f rdf:type ontology:Q3769299 }
politician
action filter_type
action find
entity politician
relation field of this occupation
type human behaviour
['worldstatesmen', 'field of this occupation', {'concept': 'human behaviour'}]
SELECT DISTINCT ?f WHERE { resource:politician property:field_of_this_occupation ?f . ?f rdf:type ontology:human_behaviour }
[]
human behaviour
Q7163
SYSTEM
politics
Q7163
(Q21815179,P425,c(Q3769299))
action filter_type
action find
entity Q82955
relation P425
type Q3769299
That [ANSWER] is associated with the field of occupation that one
['Q21815179', 'P425', {'concept': 'Q3769299'}]
SELECT DISTINCT ?f WHERE { resource:Q82955 property:P425 ?f . ?f rdf:type ontology:Q3769299 }
politics
That politics is associated with the field of occupation that one
politics
action filter_type
action find
entity politician
relation field of this occupation
type human behaviour
['worldstatesmen', 'field of this occupation', {'concept': 'human behaviour'}]
SELECT DISTINCT ?f WHERE { resource:politician property:field_of_this_occupation ?f . ?f rdf:type ontology:human_behaviour }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q184402
P112
Q7210356
USER
Which political organizations were started by ayatollah ?
(c(Q7210356),P112,Q184402)
action filter_type
action find_reverse
entity Q184402
relation P112
type Q7210356
[{'concept': 'Q7210356'}, 'P112', 'Q184402']
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q7210356 . ?g property:P112 resource:Q184402 }
ayatollah
action filter_type
action find_reverse
entity ayatollah
relation founder
type political organization
[{'concept': 'political organization'}, 'founder', 'ayatollah']
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:political_organization . ?g property:founder resource:ayatollah }
[]
political organization
Q718723 Q2994636 Q3291634
SYSTEM
Islamic Supreme Council of Iraq, Badr Organization, Sadrist Movement
Q718723 Q2994636 Q3291634
(c(Q7210356),P112,Q184402)
action filter_type
action find_reverse
entity Q184402
relation P112
type Q7210356
[ANSWERS] were started by ayatollah
[{'concept': 'Q7210356'}, 'P112', 'Q184402']
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q7210356 . ?g property:P112 resource:Q184402 }
Islamic Supreme Council of Iraq Badr Organization Sadrist Movement
Islamic Supreme Council of Iraq, Badr Organization and Sadrist Movement were started by ayatollah
Islamic Supreme Council of Iraq Badr Organization Sadrist Movement
action filter_type
action find_reverse
entity ayatollah
relation founder
type political organization
[{'concept': 'political organization'}, 'founder', 'ayatollah']
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:political_organization . ?g property:founder resource:ayatollah }
[]