Simple Question (Direct)
Simple Question
Q3235102
P161
Q502895
USER
Which people starred in Maula Jatt ?
(Q3235102,P161,c(Q502895))
action filter_type
action find
entity Q3235102
relation P161
type Q502895
['Q3235102', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q502895 . resource:Q3235102 property:P161 ?o }
Maula Jatt
action filter_type
action find
entity Maula Jatt
relation cast member
type common name
['Maula Jatt', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:common_name . resource:Maula_Jatt property:cast_member ?o }
[]
common name
Q4662724 Q7636729 Q6943317
SYSTEM
Aasia, Sultan Rahi, Mustafa Qureshi
Q4662724 Q7636729 Q6943317
(Q3235102,P161,c(Q502895))
action filter_type
action find
entity Q3235102
relation P161
type Q502895
[ANSWERS] starred in Maula Jatt
['Q3235102', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q502895 . resource:Q3235102 property:P161 ?o }
Aasia Sultan Rahi Mustafa Qureshi
Aasia, Sultan Rahi and Mustafa Qureshi starred in Maula Jatt
Aasia Sultan Rahi Mustafa Qureshi
action filter_type
action find
entity Maula Jatt
relation cast member
type common name
['Maula Jatt', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:common_name . resource:Maula_Jatt property:cast_member ?o }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q4662724 Q7636729 Q6943317
P161
Q838948
USER
Which works of art do Aasia, Sultan Rahi and Mustafa Qureshi star in ?
(c(Q838948),P161,Q4662724) (c(Q838948),P161,Q7636729) (c(Q838948),P161,Q6943317)
action union
action filter_type
action find_reverse
entity Q4662724
relation P161
type Q838948
action filter_type
action find_reverse
entity Q7636729
relation P161
type Q838948
action filter_type
action find_reverse
entity Q6943317
relation P161
type Q838948
[{'concept': 'Q838948'}, 'P161', 'Q4662724'] [{'concept': 'Q838948'}, 'P161', 'Q7636729'] [{'concept': 'Q838948'}, 'P161', 'Q6943317']
SELECT DISTINCT ?g WHERE { ?g property:P161 ?j . VALUES ( ?j ) { ( resource:Q7636729 ) ( resource:Q4662724 ) } }
Aasia Sultan Rahi Mustafa Qureshi
action union
action filter_type
action find_reverse
entity Aasia
relation cast member
type work of art
action filter_type
action find_reverse
entity Sultan Rahi
relation cast member
type work of art
action filter_type
action find_reverse
entity Mustafa Qureshi
relation cast member
type work of art
[{'concept': 'work of art'}, 'cast member', 'Aasia'] [{'concept': 'work of art'}, 'cast member', 'Sultan Rahi'] [{'concept': 'work of art'}, 'cast member', 'Mustafa Qureshi']
SELECT DISTINCT ?g WHERE { ?g property:cast_member ?j . VALUES ( ?j ) { ( resource:Sultan_Rahi ) ( resource:Aasia ) } }
[]
work of art
Q20981201 Q3153268 Q19825963
SYSTEM
Imam Din Gohavia, International Guerillas, Visa Dubai Da
Q20890761 Q3235102 Q19827930 Q20165543 Q19827970 Q19827952 Q20725611 Q19827898 Q20725542 Q21244982 Q20890687 Q25302540 Q20890761 Q19852901 Q21855694 Q19822659 Q20900118 Q3235102 Q20814533 Q19856772 Q19825963 Q19860538 Q19839164 Q19827930 Q20165543 Q21646898 Q19827970 Q19827952 Q19911405 Q19819885 Q19824551 Q21647008 Q20650111 Q19850937 Q20814472 Q19856461 Q21646998 Q21244851 Q21869940 Q19819773 Q19820145 Q20035793 Q20981201 Q21870040 Q20725611 Q5285011 Q21244966 Q20962075 Q21244931 Q19860399 Q19837964 Q19820065 Q21647072 Q19826166 Q21646543 Q20725565 Q20874828 Q19852901 Q3153268 Q3235102 Q20814533 Q19827930 Q20165543 Q19827970 Q19827952 Q19850937 Q19856461 Q4754510 Q19819773 Q19820145 Q5096899 Q20962075 Q21646735 Q20725565
(c(Q838948),P161,Q4662724) (c(Q838948),P161,Q7636729) (c(Q838948),P161,Q6943317)
action union
action filter_type
action find_reverse
entity Q4662724
relation P161
type Q838948
action filter_type
action find_reverse
entity Q7636729
relation P161
type Q838948
action filter_type
action find_reverse
entity Q6943317
relation P161
type Q838948
[ANSWERS] Aasia, Sultan Rahi and Mustafa Qureshi star in
[{'concept': 'Q838948'}, 'P161', 'Q4662724'] [{'concept': 'Q838948'}, 'P161', 'Q7636729'] [{'concept': 'Q838948'}, 'P161', 'Q6943317']
SELECT DISTINCT ?g WHERE { ?g property:P161 ?j . VALUES ( ?j ) { ( resource:Q7636729 ) ( resource:Q4662724 ) } }
Ranga Daku Maula Jatt Khan-E-Azam Yeh Adam Medaan Sheran Day Puttar Sher Wehshi Gujjar Ghulami Mela Hathiar Jagga Tay Shera Saranga Ranga Daku Sholay Dara Baloch Hoshiar Gernail Singh Maula Jatt Ghulami Sher Khan Visa Dubai Da Kismat Doli Khan-E-Azam Yeh Adam Qaidi Medaan Sheran Day Puttar Sher Pukar Kalay Chor Des Pardes Silsila Behram Daku Baghi Sher Chan Suraj Kalia Sher Punjab Da Athra Puttar Sadqay Teri Mout Tun Chan Veryam Jatt tay Dogar Abdullah the Great Imam Din Gohavia Zamana Wehshi Gujjar Diya Aur Toofan Ghunda Raj Malanga Cobra Baghi کالے چور International Luterey Charda Suraj Insaniyat kay Dushman Jatt Te Dogar Sajawal Daku Khuddar Sholay International Guerillas Maula Jatt Ghulami Khan-E-Azam Yeh Adam Medaan Sheran Day Puttar Sher Baghi Sher Kalia Andleeb Chan Veryam Jatt tay Dogar Chief Sahib Malanga Moti Dogar Sajawal Daku
Imam Din Gohavia, International Guerillas and Visa Dubai Da Aasia, Sultan Rahi and Mustafa Qureshi star in
Imam Din Gohavia International Guerillas Visa Dubai Da
action union
action filter_type
action find_reverse
entity Aasia
relation cast member
type work of art
action filter_type
action find_reverse
entity Sultan Rahi
relation cast member
type work of art
action filter_type
action find_reverse
entity Mustafa Qureshi
relation cast member
type work of art
[{'concept': 'work of art'}, 'cast member', 'Aasia'] [{'concept': 'work of art'}, 'cast member', 'Sultan Rahi'] [{'concept': 'work of art'}, 'cast member', 'Mustafa Qureshi']
SELECT DISTINCT ?g WHERE { ?g property:cast_member ?j . VALUES ( ?j ) { ( resource:Sultan_Rahi ) ( resource:Aasia ) } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q4662724
P27
Q15617994
USER
Which administrative territory is the native country of that person ?
(Q4662724,P27,c(Q15617994))
action filter_type
action find
entity Q4662724
relation P27
type Q15617994
['Q4662724', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?n WHERE { resource:Q4662724 property:P27 ?n . ?n rdf:type ontology:Q15617994 }
Aasia
action filter_type
action find
entity Aasia
relation country of citizenship
type designation for an administrative territorial entity
['Aasia', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { resource:Aasia property:country_of_citizenship ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Clarification for simple ques.
Q4662724
SYSTEM
Did you mean Aasia ?
Q20981201 Q3153268 Q19825963
(Q20981201,P27,c(Q15617994)) (Q3153268,P27,c(Q15617994)) (Q19825963,P27,c(Q15617994))
[ANSWER]
['Q20981201', 'P27', {'concept': 'Q15617994'}] ['Q3153268', 'P27', {'concept': 'Q15617994'}] ['Q19825963', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?n WHERE { resource:Q4662724 property:P27 ?n . ?n rdf:type ontology:Q15617994 }
Imam Din Gohavia International Guerillas Visa Dubai Da
Did you mean Aasia ?
Aasia
['Imam Din Gohavia', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}] ['International Guerillas', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}] ['Visa Dubai Da', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { resource:Aasia property:country_of_citizenship ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
USER
Yes
(Q4662724,P27,c(Q15617994))
['Q4662724', 'P27', {'concept': 'Q15617994'}]
['Aasia', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
[]
Q668
SYSTEM
India
Q668
(Q4662724,P27,c(Q15617994))
action filter_type
action find
entity Q4662724
relation P27
type Q15617994
To [ANSWER] is the native country of that person
['Q4662724', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?n WHERE { resource:Q4662724 property:P27 ?n . ?n rdf:type ontology:Q15617994 }
India
To India is the native country of that person
India
action filter_type
action find
entity Aasia
relation country of citizenship
type designation for an administrative territorial entity
['Aasia', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { resource:Aasia property:country_of_citizenship ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Indirect
P495
Q15617994 Q15416 Q2088357
USER
How many administrative territories are the countries of origin of more number of television programs or musical ensembles than that administrative territory ?
(c(Q15416)|c(Q2088357),P495,c(Q15617994))
action count
action greater
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q15416
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q2088357
action count
action filter_multi_types
action find_reverse
entity Q668
relation P495
type Q15416
type Q2088357
[[{'concept': 'Q15416'}, {'concept': 'Q2088357'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?z ) WHERE { FILTER ( ?a > ?p ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?p ) WHERE { { { ?c rdf:type ontology:Q15416 } UNION { ?c rdf:type ontology:Q2088357 } } . ?c property:P495 resource:Q668 } } . { SELECT DISTINCT ?f ( COUNT ( ?d ) AS ?a ) WHERE { { ?d property:P495 ?f . ?f rdf:type ontology:Q15617994 . ?d rdf:type ontology:Q2088357 } UNION { ?d property:P495 ?f . ?d rdf:type ontology:Q15416 . ?f rdf:type ontology:Q15617994 } } GROUP BY ?f } }
action count
action greater
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type television program
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type musical ensemble
action count
action filter_multi_types
action find_reverse
entity India
relation country of origin
type television program
type musical ensemble
[[{'concept': 'television program'}, {'concept': 'musical ensemble'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?z ) WHERE { FILTER ( ?a > ?p ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?p ) WHERE { { { ?c rdf:type ontology:television_program } UNION { ?c rdf:type ontology:musical_ensemble } } . ?c property:country_of_origin resource:India } } . { SELECT DISTINCT ?f ( COUNT ( ?d ) AS ?a ) WHERE { { ?d property:country_of_origin ?f . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . ?d rdf:type ontology:musical_ensemble } UNION { ?d property:country_of_origin ?f . ?d rdf:type ontology:television_program . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?f } }
[]
designation for an administrative territorial entity television program musical ensemble
SYSTEM
2
Q145 Q30
(c(Q15416)|c(Q2088357),P495,c(Q15617994))
action count
action greater
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q15416
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q2088357
action count
action filter_multi_types
action find_reverse
entity Q668
relation P495
type Q15416
type Q2088357
[ANSWER]
[[{'concept': 'Q15416'}, {'concept': 'Q2088357'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?z ) WHERE { FILTER ( ?a > ?p ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?p ) WHERE { { { ?c rdf:type ontology:Q15416 } UNION { ?c rdf:type ontology:Q2088357 } } . ?c property:P495 resource:Q668 } } . { SELECT DISTINCT ?f ( COUNT ( ?d ) AS ?a ) WHERE { { ?d property:P495 ?f . ?f rdf:type ontology:Q15617994 . ?d rdf:type ontology:Q2088357 } UNION { ?d property:P495 ?f . ?d rdf:type ontology:Q15416 . ?f rdf:type ontology:Q15617994 } } GROUP BY ?f } }
United Kingdom United States of America
2
action count
action greater
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type television program
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type musical ensemble
action count
action filter_multi_types
action find_reverse
entity India
relation country of origin
type television program
type musical ensemble
[[{'concept': 'television program'}, {'concept': 'musical ensemble'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?z ) WHERE { FILTER ( ?a > ?p ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?p ) WHERE { { { ?c rdf:type ontology:television_program } UNION { ?c rdf:type ontology:musical_ensemble } } . ?c property:country_of_origin resource:India } } . { SELECT DISTINCT ?f ( COUNT ( ?d ) AS ?a ) WHERE { { ?d property:country_of_origin ?f . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . ?d rdf:type ontology:musical_ensemble } UNION { ?d property:country_of_origin ?f . ?d rdf:type ontology:television_program . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?f } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q668
P163
Q14660
USER
Which flag is associated with India ?
(Q668,P163,c(Q14660))
action filter_type
action find
entity Q668
relation P163
type Q14660
['Q668', 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ?e WHERE { resource:Q668 property:P163 ?e . ?e rdf:type ontology:Q14660 }
India
action filter_type
action find
entity India
relation flag
type flag
['India', 'flag', {'concept': 'flag'}]
SELECT DISTINCT ?e WHERE { resource:India property:flag ?e . ?e rdf:type ontology:flag }
[]
flag
Q41673
SYSTEM
flag of India
Q41673
(Q668,P163,c(Q14660))
action filter_type
action find
entity Q668
relation P163
type Q14660
India [ANSWER] is associated with India
['Q668', 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ?e WHERE { resource:Q668 property:P163 ?e . ?e rdf:type ontology:Q14660 }
flag of India
India flag of India is associated with India
flag of India
action filter_type
action find
entity India
relation flag
type flag
['India', 'flag', {'concept': 'flag'}]
SELECT DISTINCT ?e WHERE { resource:India property:flag ?e . ?e rdf:type ontology:flag }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q574
Q14660
USER
And how about East Timor?
(Q574,P163,c(Q14660))
action filter_type
action find
entity Q574
relation P163
type Q14660
['Q574', 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q14660 . resource:Q574 property:P163 ?y }
East Timor
action filter_type
action find
entity East Timor
relation flag
type flag
['East Timor', 'flag', {'concept': 'flag'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:flag . resource:East_Timor property:flag ?y }
[]
flag
Q30768
SYSTEM
flag of East Timor
Q30768
(Q574,P163,c(Q14660))
action filter_type
action find
entity Q574
relation P163
type Q14660
[ANSWER]
['Q574', 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q14660 . resource:Q574 property:P163 ?y }
flag of East Timor
flag of East Timor
action filter_type
action find
entity East Timor
relation flag
type flag
['East Timor', 'flag', {'concept': 'flag'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:flag . resource:East_Timor property:flag ?y }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q574
P1532
Q6979593
USER
Who plays for that administrative territory ?
(c(Q6979593),P1532,Q30768)
action filter_type
action find_reverse
entity Q574
relation P1532
type Q6979593
[{'concept': 'Q6979593'}, 'P1532', 'Q30768']
SELECT DISTINCT ?x WHERE { ?x property:P1532 resource:Q574 . ?x rdf:type ontology:Q6979593 }
East Timor
action filter_type
action find_reverse
entity East Timor
relation country for sport
type national association football team
[{'concept': 'national association football team'}, 'country for sport', 'flag of East Timor']
SELECT DISTINCT ?x WHERE { ?x property:country_for_sport resource:East_Timor . ?x rdf:type ontology:national_association_football_team }
[]
national association football team
Q7806952
SYSTEM
Timor-Leste women's national football team
Q7806952
(c(Q6979593),P1532,Q30768)
action filter_type
action find_reverse
entity Q574
relation P1532
type Q6979593
And [ANSWER] plays for that administrative territory
[{'concept': 'Q6979593'}, 'P1532', 'Q30768']
SELECT DISTINCT ?x WHERE { ?x property:P1532 resource:Q574 . ?x rdf:type ontology:Q6979593 }
Timor-Leste women's national football team
And Timor-Leste women's national football team plays for that administrative territory
Timor-Leste women's national football team
action filter_type
action find_reverse
entity East Timor
relation country for sport
type national association football team
[{'concept': 'national association football team'}, 'country for sport', 'flag of East Timor']
SELECT DISTINCT ?x WHERE { ?x property:country_for_sport resource:East_Timor . ?x rdf:type ontology:national_association_football_team }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q233
P1532
Q15617994 Q6979593
USER
How many administrative territories did greater number of national association football teams play for than Malta ?
(c(Q6979593),P1532,c(Q15617994))
action count
action greater
action find_reverse_tuple_counts
relation P1532
type Q15617994
type Q6979593
action count
action filter_type
action find
entity Q233
relation P1532
type Q15617994
[{'concept': 'Q6979593'}, 'P1532', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?d ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?m ) AS ?l ) WHERE { ?m property:P1532 ?x . ?x rdf:type ontology:Q15617994 . ?m rdf:type ontology:Q6979593 } GROUP BY ?x } . FILTER ( ?l > ?o ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?o ) WHERE { resource:Q233 property:P1532 ?q . ?q rdf:type ontology:Q15617994 } } }
Malta
action count
action greater
action find_reverse_tuple_counts
relation country for sport
type designation for an administrative territorial entity
type national association football team
action count
action filter_type
action find
entity Malta
relation country for sport
type designation for an administrative territorial entity
[{'concept': 'national association football team'}, 'country for sport', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?d ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?m ) AS ?l ) WHERE { ?m property:country_for_sport ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?m rdf:type ontology:national_association_football_team } GROUP BY ?x } . FILTER ( ?l > ?o ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?o ) WHERE { resource:Malta property:country_for_sport ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity } } }
[]
designation for an administrative territorial entity national association football team
SYSTEM
70
Q801 Q800 Q419 Q668 Q414 Q142 Q55 Q145 Q148 Q37 Q717 Q403 Q258 Q45 Q159 Q43 Q41 Q155 Q792 Q790 Q796 Q794 Q884 Q241 Q33 Q31 Q30 Q36 Q34 Q39 Q38 Q739 Q423 Q733 Q730 Q1013 Q20 Q1041 Q189 Q842 Q184 Q1028 Q225 Q224 Q222 Q96 Q17 Q1033 Q191 Q298 Q114 Q117 Q213 Q218 Q219 Q912 Q1009 Q1008 Q686 Q836 Q77 Q858 Q878 Q774 Q948 Q810 Q678 Q29 Q869 Q953
(c(Q6979593),P1532,c(Q15617994))
action count
action greater
action find_reverse_tuple_counts
relation P1532
type Q15617994
type Q6979593
action count
action filter_type
action find
entity Q233
relation P1532
type Q15617994
[ANSWER]
[{'concept': 'Q6979593'}, 'P1532', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?d ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?m ) AS ?l ) WHERE { ?m property:P1532 ?x . ?x rdf:type ontology:Q15617994 . ?m rdf:type ontology:Q6979593 } GROUP BY ?x } . FILTER ( ?l > ?o ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?o ) WHERE { resource:Q233 property:P1532 ?q . ?q rdf:type ontology:Q15617994 } } }
Israel Costa Rica Peru India Argentina France Netherlands United Kingdom People's Republic of China Lithuania Venezuela Serbia South Africa Portugal Russia Turkey Greece Brazil El Salvador Haiti Iraq Iran South Korea Cuba Finland Belgium United States of America Poland Sweden Switzerland Italy Colombia North Korea Paraguay Suriname Lesotho Norway Senegal Iceland Oman Belarus Morocco Bosnia and Herzegovina Croatia Albania Mexico Japan Nigeria Estonia Chile Kenya Ghana Czech Republic Romania Bulgaria Mali Cameroon Côte d'Ivoire Vanuatu Myanmar Uruguay Syria United Arab Emirates Guatemala Tunisia Jordan Tonga Spain Thailand Zambia
70
action count
action greater
action find_reverse_tuple_counts
relation country for sport
type designation for an administrative territorial entity
type national association football team
action count
action filter_type
action find
entity Malta
relation country for sport
type designation for an administrative territorial entity
[{'concept': 'national association football team'}, 'country for sport', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?d ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?m ) AS ?l ) WHERE { ?m property:country_for_sport ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?m rdf:type ontology:national_association_football_team } GROUP BY ?x } . FILTER ( ?l > ?o ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?o ) WHERE { resource:Malta property:country_for_sport ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity } } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q953
P1532
Q15617994 Q6979593
USER
And how about Zambia?
(c(Q6979593),P1532,c(Q15617994))
action count
action greater
action find_reverse_tuple_counts
relation P1532
type Q15617994
type Q6979593
action count
action filter_type
action find
entity Q953
relation P1532
type Q15617994
[{'concept': 'Q6979593'}, 'P1532', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?z ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?o ) AS ?q ) WHERE { ?y rdf:type ontology:Q15617994 . ?o rdf:type ontology:Q6979593 . ?o property:P1532 ?y } GROUP BY ?y } . FILTER ( ?q > ?x ) . { SELECT DISTINCT ( COUNT ( ?v ) AS ?x ) WHERE { resource:Q953 property:P1532 ?v . ?v rdf:type ontology:Q15617994 } } }
Zambia
action count
action greater
action find_reverse_tuple_counts
relation country for sport
type designation for an administrative territorial entity
type national association football team
action count
action filter_type
action find
entity Zambia
relation country for sport
type designation for an administrative territorial entity
[{'concept': 'national association football team'}, 'country for sport', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?z ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?o ) AS ?q ) WHERE { ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?o rdf:type ontology:national_association_football_team . ?o property:country_for_sport ?y } GROUP BY ?y } . FILTER ( ?q > ?x ) . { SELECT DISTINCT ( COUNT ( ?v ) AS ?x ) WHERE { resource:Zambia property:country_for_sport ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity } } }
[]
designation for an administrative territorial entity national association football team
SYSTEM
5
Q142 Q43 Q30 Q117 Q29
(c(Q6979593),P1532,c(Q15617994))
action count
action greater
action find_reverse_tuple_counts
relation P1532
type Q15617994
type Q6979593
action count
action filter_type
action find
entity Q953
relation P1532
type Q15617994
[ANSWER]
[{'concept': 'Q6979593'}, 'P1532', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?z ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?o ) AS ?q ) WHERE { ?y rdf:type ontology:Q15617994 . ?o rdf:type ontology:Q6979593 . ?o property:P1532 ?y } GROUP BY ?y } . FILTER ( ?q > ?x ) . { SELECT DISTINCT ( COUNT ( ?v ) AS ?x ) WHERE { resource:Q953 property:P1532 ?v . ?v rdf:type ontology:Q15617994 } } }
France Turkey United States of America Ghana Spain
5
action count
action greater
action find_reverse_tuple_counts
relation country for sport
type designation for an administrative territorial entity
type national association football team
action count
action filter_type
action find
entity Zambia
relation country for sport
type designation for an administrative territorial entity
[{'concept': 'national association football team'}, 'country for sport', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?z ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?o ) AS ?q ) WHERE { ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?o rdf:type ontology:national_association_football_team . ?o property:country_for_sport ?y } GROUP BY ?y } . FILTER ( ?q > ?x ) . { SELECT DISTINCT ( COUNT ( ?v ) AS ?x ) WHERE { resource:Zambia property:country_for_sport ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity } } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P941
Q14660 Q14660
USER
Which flags were inspired by min number of flags ?
(c(Q14660),P941,c(Q14660))
action argmin
action find_tuple_counts
relation P941
type Q14660
type Q14660
[{'concept': 'Q14660'}, 'P941', {'concept': 'Q14660'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( MIN ( ?x ) AS ?l ) { SELECT DISTINCT ?g ( COUNT ( ?r ) AS ?x ) WHERE { ?g property:P941 ?r . ?g rdf:type ontology:Q14660 . ?r rdf:type ontology:Q14660 } GROUP BY ?g } } . FILTER ( ?b = ?l ) . { SELECT DISTINCT ?h ( COUNT ( ?k ) AS ?b ) WHERE { ?h property:P941 ?k . ?h rdf:type ontology:Q14660 . ?k rdf:type ontology:Q14660 } GROUP BY ?h } }
action argmin
action find_tuple_counts
relation inspired by
type flag
type flag
[{'concept': 'flag'}, 'inspired by', {'concept': 'flag'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( MIN ( ?x ) AS ?l ) { SELECT DISTINCT ?g ( COUNT ( ?r ) AS ?x ) WHERE { ?g property:inspired_by ?r . ?g rdf:type ontology:flag . ?r rdf:type ontology:flag } GROUP BY ?g } } . FILTER ( ?b = ?l ) . { SELECT DISTINCT ?h ( COUNT ( ?k ) AS ?b ) WHERE { ?h property:inspired_by ?k . ?h rdf:type ontology:flag . ?k rdf:type ontology:flag } GROUP BY ?h } }
[]
flag flag
Q429900 Q604735
SYSTEM
Flag of Saba, Flag of Sint Maarten
Q429900 Q604735
(c(Q14660),P941,c(Q14660))
action argmin
action find_tuple_counts
relation P941
type Q14660
type Q14660
[ANSWERS] were inspired by min number of flags
[{'concept': 'Q14660'}, 'P941', {'concept': 'Q14660'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( MIN ( ?x ) AS ?l ) { SELECT DISTINCT ?g ( COUNT ( ?r ) AS ?x ) WHERE { ?g property:P941 ?r . ?g rdf:type ontology:Q14660 . ?r rdf:type ontology:Q14660 } GROUP BY ?g } } . FILTER ( ?b = ?l ) . { SELECT DISTINCT ?h ( COUNT ( ?k ) AS ?b ) WHERE { ?h property:P941 ?k . ?h rdf:type ontology:Q14660 . ?k rdf:type ontology:Q14660 } GROUP BY ?h } }
Flag of Saba Flag of Sint Maarten
Flag of Saba and Flag of Sint Maarten were inspired by min number of flags
Flag of Saba Flag of Sint Maarten
action argmin
action find_tuple_counts
relation inspired by
type flag
type flag
[{'concept': 'flag'}, 'inspired by', {'concept': 'flag'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( MIN ( ?x ) AS ?l ) { SELECT DISTINCT ?g ( COUNT ( ?r ) AS ?x ) WHERE { ?g property:inspired_by ?r . ?g rdf:type ontology:flag . ?r rdf:type ontology:flag } GROUP BY ?g } } . FILTER ( ?b = ?l ) . { SELECT DISTINCT ?h ( COUNT ( ?k ) AS ?b ) WHERE { ?h property:inspired_by ?k . ?h rdf:type ontology:flag . ?k rdf:type ontology:flag } GROUP BY ?h } }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q429900 Q604735
P941
Q14660
USER
What were Flag of Saba and Flag of Sint Maarten inspired by ?
(Q429900,P941,c(Q14660)) (Q604735,P941,c(Q14660))
action union
action filter_type
action find
entity Q429900
relation P941
type Q14660
action filter_type
action find
entity Q604735
relation P941
type Q14660
['Q429900', 'P941', {'concept': 'Q14660'}] ['Q604735', 'P941', {'concept': 'Q14660'}]
SELECT DISTINCT ?i WHERE { { resource:Q429900 property:P941 ?i . ?i rdf:type ontology:Q14660 } UNION { resource:Q604735 property:P941 ?i . ?i rdf:type ontology:Q14660 } }
Flag of Saba Flag of Sint Maarten
action union
action filter_type
action find
entity Flag of Saba
relation inspired by
type flag
action filter_type
action find
entity Flag of Sint Maarten
relation inspired by
type flag
['Flag of Saba', 'inspired by', {'concept': 'flag'}] ['Flag of Sint Maarten', 'inspired by', {'concept': 'flag'}]
SELECT DISTINCT ?i WHERE { { resource:Flag_of_Saba property:inspired_by ?i . ?i rdf:type ontology:flag } UNION { resource:Flag_of_Sint_Maarten property:inspired_by ?i . ?i rdf:type ontology:flag } }
[]
flag
Q46585 Q46585
SYSTEM
flag of the Netherlands
Q46585 Q46585
(Q429900,P941,c(Q14660)) (Q604735,P941,c(Q14660))
action union
action filter_type
action find
entity Q429900
relation P941
type Q14660
action filter_type
action find
entity Q604735
relation P941
type Q14660
Flag of Saba and Flag of Sint Maarten were inspired by [ANSWER] and [ANSWER]
['Q429900', 'P941', {'concept': 'Q14660'}] ['Q604735', 'P941', {'concept': 'Q14660'}]
SELECT DISTINCT ?i WHERE { { resource:Q429900 property:P941 ?i . ?i rdf:type ontology:Q14660 } UNION { resource:Q604735 property:P941 ?i . ?i rdf:type ontology:Q14660 } }
flag of the Netherlands flag of the Netherlands
Flag of Saba and Flag of Sint Maarten were inspired by flag of the Netherlands and flag of the Netherlands
flag of the Netherlands flag of the Netherlands
action union
action filter_type
action find
entity Flag of Saba
relation inspired by
type flag
action filter_type
action find
entity Flag of Sint Maarten
relation inspired by
type flag
['Flag of Saba', 'inspired by', {'concept': 'flag'}] ['Flag of Sint Maarten', 'inspired by', {'concept': 'flag'}]
SELECT DISTINCT ?i WHERE { { resource:Flag_of_Saba property:inspired_by ?i . ?i rdf:type ontology:flag } UNION { resource:Flag_of_Sint_Maarten property:inspired_by ?i . ?i rdf:type ontology:flag } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q668
P1313
Q12737077
USER
Which occupation serves as the political office that is fulfilled by the head of the government of India ?
(Q668,P1313,c(Q12737077))
action filter_type
action find
entity Q668
relation P1313
type Q12737077
['Q668', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?a WHERE { resource:Q668 property:P1313 ?a . ?a rdf:type ontology:Q12737077 }
India
action filter_type
action find
entity India
relation office held by head of government
type occupation
['India', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?a WHERE { resource:India property:office_held_by_head_of_government ?a . ?a rdf:type ontology:occupation }
[]
occupation
Q192711
SYSTEM
Prime Minister of India
Q192711
(Q668,P1313,c(Q12737077))
action filter_type
action find
entity Q668
relation P1313
type Q12737077
The [ANSWER] serves as the political office that is fulfilled by the head of the government of India
['Q668', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?a WHERE { resource:Q668 property:P1313 ?a . ?a rdf:type ontology:Q12737077 }
Prime Minister of India
The Prime Minister of India serves as the political office that is fulfilled by the head of the government of India
Prime Minister of India
action filter_type
action find
entity India
relation office held by head of government
type occupation
['India', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?a WHERE { resource:India property:office_held_by_head_of_government ?a . ?a rdf:type ontology:occupation }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q1606604
Q12737077
USER
And also tell me about Arevalillo?
(Q1606604,P1313,c(Q12737077))
action filter_type
action find
entity Q1606604
relation P1313
type Q12737077
['Q1606604', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?c WHERE { resource:Q1606604 property:P1313 ?c . ?c rdf:type ontology:Q12737077 }
Arevalillo
action filter_type
action find
entity Arevalillo
relation office held by head of government
type occupation
['Arevalillo', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?c WHERE { resource:Arevalillo property:office_held_by_head_of_government ?c . ?c rdf:type ontology:occupation }
[]
occupation
Q26691943
SYSTEM
mayor of Arevalillo
Q26691943
(Q1606604,P1313,c(Q12737077))
action filter_type
action find
entity Q1606604
relation P1313
type Q12737077
[ANSWER]
['Q1606604', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?c WHERE { resource:Q1606604 property:P1313 ?c . ?c rdf:type ontology:Q12737077 }
mayor of Arevalillo
mayor of Arevalillo
action filter_type
action find
entity Arevalillo
relation office held by head of government
type occupation
['Arevalillo', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?c WHERE { resource:Arevalillo property:office_held_by_head_of_government ?c . ?c rdf:type ontology:occupation }
[]